Class google.gdata.client.GoogleService
Object
|
+--google.gdata.client.Service
|
+--google.gdata.client.GoogleService
-
Direct Known Subclasses:
-
google.gdata.calendar.CalendarService, google.gdata.contacts.ContactsService, google.gdata.blogger.BloggerService, google.gdata.finance.FinanceService
- class
google.gdata.client.GoogleService
- extends google.gdata.client.Service
GData Service.
Defined in gdata.js
Constructor Summary |
google.gdata.client.GoogleService(<String> serviceName, <String> applicationName)
Creates a service that supports all alt formats: 'atom', 'atom-in-script',
'json', 'json-in-script', 'rss' and 'rss-in-script'.
|
Method Summary |
Object
|
getUserCredentials()
Gets user credentials.
|
void
|
setAuthenticationCookie(<string> cookieName, <string> loginType)
Sets authentication type to CookieAuthenticator, and sets cookie name and
login type.
|
void
|
setUserCredentials(<String|Null> username, <String|Null> password)
Sets user credentials.
|
Methods inherited from class google.gdata.client.Service |
setDeveloperKey, supportsAlt, setAltSupport, isXd2Supported, setXd2Supported, getCurrentPageLocation_, getFeed, getEntry, insertEntry, updateEntry, deleteEntry, setHeaders
|
google.gdata.client.GoogleService
google.gdata.client.GoogleService(<String> serviceName, <String> applicationName)
Creates a service that supports all alt formats: 'atom', 'atom-in-script',
'json', 'json-in-script', 'rss' and 'rss-in-script'.
Parameters:
serviceName
- Name of GData service (used for tracking?)
applicationName
- Name of application (used for tracking?)
getUserCredentials
Object getUserCredentials()
Returns:
User credentials with properties "username" and "password"
setAuthenticationCookie
void setAuthenticationCookie(<string> cookieName, <string> loginType)
Sets authentication type to CookieAuthenticator, and sets cookie name and
login type.
Parameters:
cookieName
- Cookie name for authentication.
loginType
- Login type for authentication, like "GoogleLogin".
setUserCredentials
void setUserCredentials(<String|Null> username, <String|Null> password)
Sets user credentials. If either user name or password is not empty, also
sets authentication required to be true. If authenticator is not
ClientLogin, also sets it to ClientLogin.
Documentation generated by
JSDoc on Mon Jul 21 17:09:08 2008