95 const DefaultUriPathPrefix =
"api/connector/v1";
108 string client = DefaultClient;
153 hash<auto>
doMewsRequest(
string path, *hash<auto> body, *reference<hash<auto>> info, *hash<auto> hdr);
string access_token
Mews access token.
Definition MewsRestClient.qm.dox.h:105
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
checkLogin(*reference< hash< auto > > info)
Checks if a login is necessary; if so, then the login is performed.
auto preprocessRequestBody(auto body)
Adds authorization keys to the request body.
static hash< auto > getOptions(hash< auto > opts)
returns options for MewsRestClient::MewsRestClient::constructor()
hash< auto > doMewsRequest(string path, *hash< auto > body, *reference< hash< auto > > info, *hash< auto > hdr)
Makes a POST request to the server with the required tokens and returns the response.
string client_token
Mews client token.
Definition MewsRestClient.qm.dox.h:102
Class for Mews REST connections; returns MewsRestClient objects.
Definition MewsRestClient.qm.dox.h:181
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
returns a data provider object for this connection
string getType()
returns "mewsrest"
*string getAppName()
Returns the data provider application name this connection serves, if any.
MewsRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a MewsRestClient object
const DefaultMewsPingHeaders
Default Mews ping headers.
Definition MewsRestClient.qm.dox.h:195
const DefaultMewsPingBody
Default Mews ping body.
Definition MewsRestClient.qm.dox.h:189
constructor(hash< auto > config, *hash< auto > attr)
creates the MewsRestConnection object
bool hasDataProvider()
returns True as this connection returns a data provider with the getDataProvider() method
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
const MewsUnsupportedRestOptions
REST options not supported by this class.
Definition MewsRestClient.qm.dox.h:185
const ConnectionScheme
Connection entry info.
Definition MewsRestClient.qm.dox.h:202
*string getPingPath()
Returns the ping path from the ping_path option.
const DefaultMewsPingPath
Defualt Mews ping path.
Definition MewsRestClient.qm.dox.h:199
Qore::AbstractPollOperation startPollConnect(*Logger::LoggerInterface logger)
Called to start a non-blocking polling ping operation on the remote REST server.
const DefaultMewsPingMethod
Default Mews ping method.
Definition MewsRestClient.qm.dox.h:192
setChildCapabilities()
Sets child data provider capabilities.
the MewsRestClient namespace contains all the objects in the MewsRestClient module
Definition MewsRestClient.qm.dox.h:81