Data |
The DataApi type exposes the following members.
Name | Description | |
---|---|---|
![]() | DataApi | Constructs a DataApi object that uses the specified IRequestProcessor internally. |
Name | Description | |
---|---|---|
![]() | GetLocationData | Sends your request for data (for a specified location) to the API servers, returning a response containing data you requested, or throwing an appropriate subclass of DegreeDaysApiException if something goes wrong. |
![]() | GetLocationInfo | A lightweight alternative to GetLocationData(LocationDataRequest) that returns info about the station(s) that would be used to satisfy an equivalent LocationDataRequest, but not the data itself. |
To get a DataApi object and use it, you would typically create a DegreeDaysApi object, get the DataApi object from that, then call the method you want. For example, to send a LocationDataRequest to the API and get a LocationDataResponse back:
DegreeDaysApi api = new DegreeDaysApi( new AccountKey(yourStringAccountKey), new SecurityKey(yourStringSecurityKey)); LocationDataResponse response = api.DataApi.GetLocationData(yourLocationDataRequest);
See GetLocationData(LocationDataRequest) and GetLocationInfo(LocationInfoRequest) for much more info and sample code.