Class Index | File Index

Classes


Class com.gContactSync.GHttpRequest


Extends com.gContactSync.HttpRequest.

Defined in: GHttpRequest.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
com.gContactSync.GHttpRequest(aType, aAuth, aUrl, aBody, aUsername, aOther)
Sets up an HTTP request to send to Google.
Fields borrowed from class com.gContactSync.HttpRequest:
CONTENT_TYPES
Methods borrowed from class com.gContactSync.HttpRequest:
addContentOverride, addHeaderItem, send
Class Detail
com.gContactSync.GHttpRequest(aType, aAuth, aUrl, aBody, aUsername, aOther)
Sets up an HTTP request to send to Google. After calling this constructor and setting up any additional data, call the send method.
Parameters:
aType
{string} The type of request. Must be one of the following authenticate, getAll, get, update, add, delete, getGroups
aAuth
{string} The authorization token.
aUrl
{string} The url for the request, if unique for the type of request. Not required for authenticate, getAll, getGroups, and add.
aBody
{string} The body of the request.
aUsername
{string} Optional. Replaces "default" in the URL.
aOther
{string} Additional parameter to use when needed. Currently this is only used for GET requests for obtaining contacts in a specified group (pass the Group ID in that case)

Documentation generated by JsDoc Toolkit 2.1.0 on Fri May 06 2011 09:24:18 GMT-0400 (EDT)