android - GoogleApiClient.addApi() doesn't support Gmail API -


i'm trying use following code authentication given apis addapi neither recognizing gmail api or gmail.api api. because of i'm getting unauthorized 401 going further application when trying retrieve messages.

mgoogleapiclient = new googleapiclient.builder(this)                 .addconnectioncallbacks(this)                 .addonconnectionfailedlistener(this)                 .addapi(plus.api)                 .addscope(plus.scope_plus_login)                 .addapi(gmail)                 .addscope(gmailscopes.gmail_readonly)                 .build(); 


Comments

Popular posts from this blog

objective c - Deep Linking for iOS Apps which are not installed yet? -

Changing nested dictionary in VBA -

javascript - SignalR sharing connection between 2 apps -