問題タブ [mapmyfitness]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
575 参照

swift - MapMyFitness API リクエストのエラー 403

MapMyFitnessAPI (Oauth2)でいくつかのリクエストを実行しようとしています。

Authorization Codeは oauth2 ID を取得できますが、今度は何らかのルートにリクエストする必要があります。

リクエストは次のとおりです。

ヘッダーには、次のような認証コードがあります。

ルート API に関するドキュメントは次のとおりです: https://developer.underarmour.com/docs/v71_Workout

アラモファイア エラー:

responseValidationFailed (Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(403))

何か足りないのですか?どうも

0 投票する
1 に答える
192 参照

android - Google Fit API に栄養を問い合わせる方法

myfitnesspal アカウントを Google にリンクし、データソース リストに dataStreamId が表示されますが、Google で oAuth 2.0 プレイグラウンドを使用してクエリを作成し、次を使用してクエリを実行しようとすると:

https://www.googleapis.com/fitness/v1/users/me/dataSources/raw:com.google.nutrition:com.myfitnesspal.android:food_item/datasets/1534723200000000000-1534982399000000000

私は以下を取得しています: