https://sunrise-sunset.org/api
This is the website and I want to get the sunrise time in a give date, i want to get the current date in the application use that date for the API so i can get the sunrise time for that day. This is what it says about using the API:
Ours is a very simple REST api, you only have to do a GET request to https://api.sunrise-sunset.org/json.
What is the syntax using retrofit and what are steps i have to do to use this api using retrofit (i am new to android dev)
This is the parameters im given:
lng (float): Longitude in decimal degrees. Required.
date (string): Date in YYYY-MM-DD format. Also accepts other date formats and even relative date formats. If not present, date defaults to current date. Optional.
callback (string): Callback function name for JSONP response. Optional.
formatted (integer): 0 or 1 (1 is default). Time values in response will be expressed following ISO 8601 and day_length will be expressed in seconds. Optional.```