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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -