org.apache.camel.example.gauth
Class TutorialService
java.lang.Object
org.apache.camel.example.gauth.TutorialService
public class TutorialService
- extends Object
Facade for getting calendar names from the Google Calendar API. The access is made on
behalf of a user by providing an OAuth access token and access token secret.
|
Method Summary |
List<String> |
getCalendarNames(String accessToken,
String accessTokenSecret)
Obtains a list of names of a user's public and private calendars from the Google
Calendar API. |
void |
setCredentials(Properties credentials)
Sets properties that contains the application's consumer key and consumer secret. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TutorialService
public TutorialService()
setCredentials
public void setCredentials(Properties credentials)
- Sets properties that contains the application's consumer key and consumer secret.
- Parameters:
credentials - consumer key and consumer secret.
getCalendarNames
public List<String> getCalendarNames(String accessToken,
String accessTokenSecret)
throws Exception
- Obtains a list of names of a user's public and private calendars from the Google
Calendar API.
- Parameters:
accessToken - OAuth access token.accessTokenSecret - OAuth access token secret.
- Returns:
- list of names of a user's public and private calendars.
- Throws:
Exception
Apache CAMEL