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 it it says its been deprecated.
Can someone please tell me what is the correct way to implement this

     public static Calendar build(String accessToken) {
    HttpTransport transport = AndroidHttp.newCompatibleTransport();
    JacksonFactory jsonFactory = new JacksonFactory();

    GoogleAccessProtectedResource accessProtectedResource =
        new GoogleAccessProtectedResource(accessToken);

 