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
Post a Comment