Method: Figo#sync_url
- Defined in:
- lib/synchronization_status/api_call.rb
#sync_url(redirect_uri, state, if_not_synced_since = 0) ⇒ String
Retrieve the URL a user should open in the web browser to start the synchronization process.
23 24 25 26 |
# File 'lib/synchronization_status/api_call.rb', line 23 def sync_url(redirect_uri, state, if_not_synced_since = 0) response = query_api "/rest/sync", {"redirect_uri" => redirect_uri, "state" => state, "if_not_synced_since" => if_not_synced_since}, "POST" return "https://#{$api_endpoint}/task/start?id=#{response["task_token"]}" end |