com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource

Here are the examples of the java api class com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource taken from open source projects.

1. GtasksInvoker#authenticate()

Project: astrid
Source File: GtasksInvoker.java
View license
public void authenticate(String authToken) {
    this.token = authToken;
    accessProtectedResource = new GoogleAccessProtectedResource(authToken);
    jsonFactory = new GsonFactory();
    service = new Tasks(AndroidHttp.newCompatibleTransport(), accessProtectedResource, jsonFactory);
    service.setKey(API_KEY);
    service.setApplicationName("Astrid");
}