2016-04-29 8 views
0

を送信するためにエラーが発生しました私は例をダウンロード: https://dev.office.com/Getting-Started/office365Apis?platform=option-android#register-app 、送信ボタンをクリックすると、このエラーがスローされます。Androidアプリ、試してみるには、電子メール

RetrofitError: 404 Not Found 
{ 
    "error": { 
    "code": "InvalidAuthenticationToken", 
    "message": "Bearer access token is empty.", 
    "innerError": { 
     "request-id": "951626d4-0168-4b58-a78a-1fdd3bd322f2", 
     "date": "2016-04-29T18:34:05" 
    } 
    } 
} 
+0

あなたはそのエラーが気に入らないと思います。エラーの原因は「ベアラアクセストークンが空です」です。また、http://stackoverflow.com/help/how-to-askを見てください。 – totoro

答えて

-1

あなたはアクセストークンが欠落しています。 https://msdn.microsoft.com/en-us/office/office365/api/discovery-service-rest-operations

Discovery Service operations

Initial sign in

This brings the client to a web page where the user enters account information. It returns the endpoints needed to continue with Discovery Service. This is used the first time a user tries your application. It tells your application: what cloud the user belongs to where the app can send the user to log in where to go to get a token

あなたは公式サイトで引き続き読むことができます。

+0

OPが求めているサンプルはMicrosoft Graphのものです。 Microsoft Graphアプリケーションは検出サービスを使用せず、むしろAADからトークンを直接取得します。 – GarethJ

0

サンプルをダウンロードする前にアプリを登録していないようです。サンプルのreadme命令では、アプリの登録と設定を行い、ログインが成功するとベアラトークンが取得されます。

関連する問題