Closed roshanzanwar closed 7 years ago
I am trying to use GRESB API to push data to GRESB survey. I was able to create New Reporting entity from my application. But I am not able to add asset level data to the newly added reporting entity, can someone help?
Below is the JSON data I am sending to GRESB API
{ "buildings":[ { "partners_id":"213412434", "asset_name":"Asset Name", "asset_address":"Add1", "asset_country":"AF", "property_type":"HOT", "survey_data":{ "2014":{ "asset_own":"6", "en_man_bcf_abs":"50000", "en_man_bcf_cov":"1000", "en_man_bcf_tot":"1000" }, "2015":{ "asset_own":"12", "en_man_bcf_abs":"-100", "en_man_bcf_cov":"1200", "en_man_bcf_tot":"1200" } } } ] }
`{ "id": 501, "oauth_application_id": 41, "created_at": "2016-04-28T12:16:40Z", "updated_at": "2016-04-28T12:16:40Z", "errors": {}, "buildings": [
] }`
Neither getting any error message nor data.
Just in case needed, below is my vb.net code for calling rest api.
Dim url = String.Format("{0}/{1}/{2}/", RESPONSES_API, id, "asset_level_data") Dim request As New RestRequest(url, Method.POST) request.AddParameter(PARAM_ACCESS_TOKEN, Authentication.AccessToken()) request.RequestFormat = DataFormat.Json request.AddBody(assetData) Return GresbWebsite.Execute(request).Content
I am trying to use GRESB API to push data to GRESB survey. I was able to create New Reporting entity from my application. But I am not able to add asset level data to the newly added reporting entity, can someone help?
Below is the JSON data I am sending to GRESB API
{ "buildings":[ { "partners_id":"213412434", "asset_name":"Asset Name", "asset_address":"Add1", "asset_country":"AF", "property_type":"HOT", "survey_data":{ "2014":{ "asset_own":"6", "en_man_bcf_abs":"50000", "en_man_bcf_cov":"1000", "en_man_bcf_tot":"1000" }, "2015":{ "asset_own":"12", "en_man_bcf_abs":"-100", "en_man_bcf_cov":"1200", "en_man_bcf_tot":"1200" } } } ] }
`{ "id": 501, "oauth_application_id": 41, "created_at": "2016-04-28T12:16:40Z", "updated_at": "2016-04-28T12:16:40Z", "errors": {}, "buildings": [
] }`
Neither getting any error message nor data.
Just in case needed, below is my vb.net code for calling rest api.
Dim url = String.Format("{0}/{1}/{2}/", RESPONSES_API, id, "asset_level_data") Dim request As New RestRequest(url, Method.POST) request.AddParameter(PARAM_ACCESS_TOKEN, Authentication.AccessToken()) request.RequestFormat = DataFormat.Json request.AddBody(assetData) Return GresbWebsite.Execute(request).Content