AstrodataService
public class AstrodataService : BaseService
- Service reference: Astrodata Service
-
Public function get Astro Data
Note
This class needs to be initialized with the accessKey and SecretKeyvar astroDataService = AstrodataService(accessKey: "[YOUR_ACCESS_KEY]", secretKey:"[YOUR_SECRET_KEY]") var astrodatRequest = AstrodataRequest() astrodatRequest.objects = "sun" astrodatRequest.placeId = "norway/oslo" astrodatRequest.interval = "2020-06-02T11:09:49" astroDataService.getAstroDataInfo(request:astrodatRequest) { (result, error) in }
Declaration
Swift
public func getAstroDataInfo(request: AstrodataRequest, completionHandler: @escaping (_ result: AstroDataResponse?, _ error: ServiceErrors?) -> Void)
Parameters
request
AstrodataRequest object
Return Value
- Astro Data Respomse:
AstroDataResponse
- Service Errors
- Astro Data Respomse: