averagewasteweight

Description:

This POST method is used for getting the average weight of the collected waste of all private
individuals from Billing. The only collection type shown here is Household waste.
Precondition: The client must supply a valid api-key.
See also login.

How to call this method:

url: https://api.tekniskaverken.se/averagewasteweight

Mandatory http-headers:

  X-auth-apikey: api-key that has been supplied by ICC

Input to method:

{
  "period" : {
	"from" : {
	  "year" : "2016",
	  "month" : "02"
	},
	"to" : {
	  "year" : "2016",
	  "month" : "04"
	}
  }
}

Output from method:

{
  "period" : {
    "from" : {
      "year" : "2016",
      "month" : "02"
    },
    "to" : {
      "year" : "2016",
      "month" : "04"
    }
  },
  "data": [
    {
      "year" : "2016",
      "month" : "02",
      "weight" : "11"
    },
    {
      "year" : "2016",
      "month" : "03",
      "weight" : "14"
    },
    {
      "year" : "2016",
      "month" : "04",
      "weight" : "12"
    }
   ],
  "code" : 0 = failed to fetch average weights, 1 = average weights fetched successfully
  "message" : error message or other information about the method execution
}