OAuth 2.0 scope information for the Google Blogger API

The scope can be set to either of the following depending on whether to want read or write access to blogs.
  1. https://www.googleapis.com/auth/blogger
  2. https://www.googleapis.com/auth/blogger.readonly
Or

import com.google.api.services.blogger.BloggerScopes;

BloggerScopes.BLOGGER
BloggerScopes.BLOGGER_READONLY

return the above corresponding strings.

List<String> scopes = Arrays.asList(BloggerScopes.BLOGGER);
    // set up authorization code flow
  GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
     httpTransport, jsonFactory, clientSecrets, scopes).build();
// set up authorization code flow
    GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
        httpTransport, JSON_FACTORY, clientSecrets,
        Collections.singleton(BloggerScopes.BLOGGER_READONLY)).setDataStoreFactory(
        dataStoreFactory).build();
Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...