Skip to content Skip to sidebar Skip to footer

Calendar Api And Oauth

From a lot of examples on the web, i am trying out a calendar application on my own. These examples used GoogleAccessProtectedResource during the calendar build. But when I tried i

Solution 1:

The Javadocs for the current version of the Google API JAVA Client library say this:

Deprecated. (scheduled to be removed in 1.11) Use GoogleCredential

See the Google OAuth wiki pages for an example on how to use it:

GoogleCredentialcredential=newGoogleCredential().setAccessToken(accessToken);
Plusplus= Plus.builder(newNetHttpTransport(), newJacksonFactory())
    .setApplicationName("Google-PlusSample/1.0")
    .setHttpRequestInitializer(credential)
    .build();

Post a Comment for "Calendar Api And Oauth"