简体   繁体   English

如果我的移动应用程序需要开发FitBit API,该如何向FitBit注册我的移动应用程序以使用其API?

[英]How can I register my mobile app with FitBit to use it's API if my mobile app needs FitBit API to be developed?

I am new to developing mobile applications. 我是开发移动应用程序的新手。 I want to develop a mobile app that reads data from a FitBit watch and does something with that data. 我想开发一个移动应用程序,该程序可以从FitBit手表读取数据并对该数据进行处理。 After searching on the Internet and on dev.fitbit.com I must register my application so that I can use it's API by providing the required information such as where the application can be downloaded, what the callback URL is. 在Internet和dev.fitbit.com上搜索之后,我必须注册我的应用程序,以便可以通过提供所需信息(例如可以在哪里下载应用程序,回调URL是什么)来使用它的API。 Sounds like the application needs to be done first before it can use FitBit API. 听起来好像需要先完成应用程序才能使用FitBit API。 But how can I develop my mobile application without its API? 但是,如何在没有API的情况下开发移动应用程序? I really don't understand this concept. 我真的不明白这个概念。 Can someone help me find the answer? 有人可以帮我找到答案吗?

For getting data you must first register your app on fitbit. 为了获取数据,您必须首先在fitbit上注册您的应用程序。 You dont't need to create your application first what you are trying to build. 您无需先创建要构建的应用程序。 To register your app, it needs some basic information about your app like Application Name, Description etc. 要注册您的应用,它需要有关您的应用的一些基本信息,例如应用名称,说明等。

Provide these information about your app. 提供有关您的应用的这些信息。 After registerting, fitbit will provide you some tokens (clientId, clientSecret etc). 注册后,fitbit将为您提供一些令牌(clientId,clientSecret等)。 Using these tokens(using OAuth2.0), you will get access token. 使用这些令牌(使用OAuth2.0),您将获得访问令牌。 Using this access token you can fetch data from fitbit and start building your app. 使用此访问令牌,您可以从fitbit获取数据并开始构建您的应用程序。

While registerinh your app you need to provide the following details. 在注册您的应用程序时,您需要提供以下详细信息。

Application Name : Predefined Name of your app that you are building. 应用程序名称:您正在构建的应用程序的预定义名称。 This will shown as explained. 这将按照说明进行显示。

Suppose you want to create account on http://stackoverflow.com . 假设您要在http://stackoverflow.com上创建帐户。 If you have already an account on gmail or facebook, you can sign up with google or facebook. 如果您已经有Gmail或Facebook帐户,则可以通过google或facebook进行注册。 Suppose you sign up with google, after providing your google credentials, one popup will come like this: 假设您使用google注册,在提供了google凭据后,将出现一个弹出窗口,如下所示:

"Stack Exchange would like to" asking some permission to access google profile information. “ Stack Exchange希望”要求获得访问Google个人资料信息的权限。 Here in place of stack exchange your app name will be visible. 在此处代替堆栈交换,您的应用名称将可见。

Description : some description about your app. Description:有关您的应用程序的一些描述。

Application Website : base address of your site. 申请网站:您网站的基本地址。 like https://www.gmail.com/ https://www.gmail.com/

Organization: name of your organization. 组织:您的组织的名称。

Organization Website: your org web site 组织网站:您的组织网站

OAuth 2.0 Application Type: use client OAuth 2.0应用程序类型:使用客户端

Callback URL: this is predefined rest api. 回调URL:这是预定义的rest api。 that will be used for token generation during oauth flow. 将用于在oauth流期间生成令牌。 after successful authorization,you will return to callback url. 成功授权后,您将返回到回调URL。

Default Access Type: Give read id only want to read the information. 默认访问类型:仅提供要读取的ID,希望读取该信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以使用Fitbit Api来获取Fitbit的加速度数据吗? - Can I use Fitbit Api to get the acceleration data of my Fitbit? 如何使用我的手机访问使用本地主机中托管的 api 的应用程序 - How to access with my mobile to an app that use an api that is host in localhost 如何为移动应用程序授予对我的api的访问权限? - How to give access to my api for a mobile app? 如何在python中为我的Web应用程序和该Web应用程序的移动版本创建API? - How can I create an API for my web app and the mobile version of that web app in python? 如何创建简单的api来测试我的移动应用程序而无需在服务器上编写api? - How can I create a simple api to test my mobile app without having to code the api out on a server? 我应如何为移动应用程序创建API(需要身份验证) - How should I create my API for mobile applications (Needs Authentication) 我可以使用Instagram API从我的移动应用程序直接发布到Instagram - Can I use the Instagram API to post from my Mobile app straight to Instagram 如何保证我的移动应用是唯一可以连接到我的API的应用[使用OAuth2.0] - How can I guarantee that my mobile app is the only app can connects to my API [using OAuth2.0] 如何允许仅通过移动应用程序请求我的API? - How allow to request my API only by my mobile app? 仅为我的移动应用启用API使用 - Enable API consumption only for my mobile App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM