Setting up Fitbit api in xcode Swift

a 夏天 提交于 2019-12-20 03:35:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!