Interface Google
-
- All Superinterfaces:
org.springframework.social.ApiBinding
- All Known Implementing Classes:
GoogleTemplate
public interface Google extends org.springframework.social.ApiBindingInterface specifying a basic set of operations for interacting with Google APIs. Implemented byGoogleTemplate.- Author:
- Gabriel Axel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CalendarOperationscalendarOperations()RetrievesCalendarOperations, used for interacting with Google Calendar API.DriveOperationsdriveOperations()RetrievesDriveOperations, used for interacting with Google Drive API.StringgetAccessToken()Returns the access token, allowing interoperability with other librariesOAuth2Operationsoauth2Operations()RetrievesOAuth2Operations, used for interacting with Google+ API.PeopleOperationspeopleOperations()RetrievesPeopleOperations, used for interacting with Google People API.PlusOperationsplusOperations()RetrievesPlusOperations, used for interacting with Google+ API.org.springframework.web.client.RestOperationsrestOperations()TaskOperationstaskOperations()RetrievesTaskOperations, used for interacting with Google Tasks API.
-
-
-
Method Detail
-
oauth2Operations
OAuth2Operations oauth2Operations()
RetrievesOAuth2Operations, used for interacting with Google+ API.- Returns:
PlusOperationsfor the authenticated user if authenticated
-
plusOperations
PlusOperations plusOperations()
RetrievesPlusOperations, used for interacting with Google+ API. Some methods require OAuth2 scope https://www.googleapis.com/auth/plus.me- Returns:
PlusOperationsfor the authenticated user if authenticated
-
taskOperations
TaskOperations taskOperations()
RetrievesTaskOperations, used for interacting with Google Tasks API. Requires OAuth scope https://www.googleapis.com/auth/tasks or https://www.googleapis.com/auth/tasks.readonly- Returns:
TaskOperationsfor the authenticated user
-
driveOperations
DriveOperations driveOperations()
RetrievesDriveOperations, used for interacting with Google Drive API. Requires OAuth scope(s) from the following:- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.apps.readonly
- https://www.googleapis.com/auth/drive.readonly
- https://www.googleapis.com/auth/drive.readonly.metadata
- Returns:
DriveOperationsfor the authenticated user
-
calendarOperations
CalendarOperations calendarOperations()
RetrievesCalendarOperations, used for interacting with Google Calendar API. Some methods require OAuth2 scope from the following:- https://www.googleapis.com/auth/calendar.readonly
- https://www.googleapis.com/auth/calendar
- Returns:
CalendarOperationsfor the authenticated user if authenticated
-
peopleOperations
PeopleOperations peopleOperations()
RetrievesPeopleOperations, used for interacting with Google People API. Some methods require OAuth2 scope https://people.googleapis.com/v1/me- Returns:
PeopleOperationsfor the authenticated user if authenticated
-
getAccessToken
String getAccessToken()
Returns the access token, allowing interoperability with other libraries- Returns:
- The OAuth2 access token
- See Also:
- Google APIs Client Library for Java
-
restOperations
org.springframework.web.client.RestOperations restOperations()
-
-