98 const DefaultUrl =
"https://www.googleapis.com";
101 const DefaultAuthArgs = ...;
105 const DefaultAuthUrl =
"https://accounts.google.com/o/oauth2/v2/auth";
108 const DefaultGrantType =
"authorization_code";
111 const DefaultTokenUrl =
"https://oauth2.googleapis.com/token";
114 const DefaultData =
"json";
117 const DefaultOptions = ...;
121 const ApiProfiles = ...;
125 const DefaultGooglePingMethod=
"GET";
128 const DefaultGooglePingHeaders = ...;
155 bool isAuthTokenError(
int status_code, hash<auto> headers, *
bool body_deserialized, *
string body_content_type,
auto body);
355 static hash<string, *hash<string, hash<DataProviderOptionInfo>>>
subtype_info;
transient *code update_options
Class for GMail connections; returns GoogleRestClient objects.
Definition GoogleRestClient.qm.dox.h:336
loadSubtypeInfo()
Loads subtype info from external modules.
static hash< string, *hash< string, hash< DataProviderOptionInfo > > > subtype_info
Data provider subtype info.
Definition GoogleRestClient.qm.dox.h:355
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
returns a data provider object for this connection
const DefaultUrl
Default Gmail HTTP URL.
Definition GoogleRestClient.qm.dox.h:340
constructor(string name, string description, string url=DefaultUrl, hash< auto > attributes={}, hash< auto > options={})
creates the GoogleRestConnection object
setUpdateOptionsCode(*code update_options)
Can be called to set or clear a closure or call reference to be called when options are automatically...
const DefaultConnectionUrl
Default GMail REST API URL.
Definition GoogleRestClient.qm.dox.h:343
checkSubtypeInfo()
Verifies that subtype info has been loaded from external modules.
const ConnectionScheme
Connection entry info.
Definition GoogleRestClient.qm.dox.h:346
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
string getType()
returns "gmail"
static Mutex subtype_lck()
Data provider subtype lock.
*string getAppName()
Returns the data provider application name this connection serves, if any.
constructor(hash< auto > config, *hash< auto > attr)
creates the GoogleRestConnection object
*hash< string, *hash< string, hash< DataProviderOptionInfo > > > getDataProviderSubtypesImpl()
Returns a hash of supported data provider subtypes.
const DataProviderSubtypeMap
Data provider subtypes supported.
Definition GoogleRestClient.qm.dox.h:350
AbstractDataProvider getDataProviderImpl(string subtype, *hash< auto > constructor_options)
returns a data provider object for the connection and subtype passed as an argument
Class for Google REST connections; returns GoogleRestClient objects.
Definition GoogleRestClient.qm.dox.h:252
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
const DefaultConnectionUrl
Default Google REST API URL.
Definition GoogleRestClient.qm.dox.h:256
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
returns a data provider object for this connection
string getType()
returns "gcal"
setUpdateOptionsCode(*code update_options)
Can be called to set or clear a closure or call reference to be called when options are automatically...
*string getAppName()
Returns the data provider application name this connection serves, if any.
constructor(hash< auto > config, *hash< auto > attr)
creates the GoogleRestConnection object
constructor(string name, string description, string url=GoogleRestClient::DefaultUrl, hash< auto > attributes={}, hash< auto > options={})
creates the GoogleRestConnection object
const ConnectionScheme
Connection entry info.
Definition GoogleRestClient.qm.dox.h:259
static hash< auto > getOptions(hash< auto > opts)
returns options for GoogleRestClient::constructor()
bool isAuthTokenError(int status_code, hash< auto > headers, *bool body_deserialized, *string body_content_type, auto body)
Returns True if the response was related to an authorization token error.
const DefaultUrl
Default Google REST API URL.
Definition GoogleRestClient.qm.dox.h:98
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
Class for Google REST connections; returns GoogleRestClient objects.
Definition GoogleRestClient.qm.dox.h:172
const ConnectionScheme
Connection entry info.
Definition GoogleRestClient.qm.dox.h:176
setChildCapabilities()
Sets child data provider capabilities.
constructor(string name, string description, string url=GoogleRestClient::DefaultUrl, hash< auto > attributes={}, hash< auto > options={})
creates the GoogleRestConnection object
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
static hash< auto > getOptions(hash< auto > opts)
returns options for GoogleRestConnection::constructor()
constructor(hash< auto > config, *hash< auto > attr)
creates the GoogleRestConnection object
string getType()
returns "grest"
GoogleRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a GoogleRestClient object
the GoogleRestClient namespace contains all the objects in the GoogleRestClient module
Definition GoogleRestClient.qm.dox.h:81