问题
I am trying to setup the Fitbit api from dev.fitbit.com The first part is to register an application and I am stuck in this part already:
For example: I have no clue what I have to fill in for the callback url. (I have never done that before using an api) Also the access type or the application type is for me very confusing.
the callback url:
I would really appreciate any help with setting up this api in xcode in the language Swift.
Thanks.
Kevin.
回答1:
It may be helpful for you-
You can use callback url as https://www.google.com/ for testing purpose. If you are designing app for a particular Organisation than put that organisation url - Example- http://www.fortishealthcare.com
回答2:
Callback URL is the URL scheme which is used to redirect the user back to the application from the browser after getting logged in.
Callback URL can be any string or name of the app in the following format "demoapp://something"
In project target Info, put the name of the app or the prefix of "://" from Callback URL in URL scheme here
来源:https://stackoverflow.com/questions/37318219/setting-up-fitbit-api-in-xcode-swift