95 const DefaultSendEncoding =
"gzip";
98 const OAuth2UriPath =
"oauth2/apitoken/v1?grant_type=client_credentials";
106 string client_secret;
148 hash<auto> doRequest(
string m,
string path,
auto body, *reference<hash> info, softbool decode_errors = True, *hash<auto> hdr);
195 "cls": Class::forName(
"Sap4HanaRestConnection"),
196 "options": RestConnection::ConnectionScheme.options + {
197 "apikey": <ConnectionOptionInfo>{
199 "desc":
"the SAP S/4 Hana API key",
201 "client_id": <ConnectionOptionInfo>{
203 "desc":
"the OAuth2 client ID",
205 "client_secret": <ConnectionOptionInfo>{
207 "desc":
"the OAuth2 client secret",
211 "required_options":
"client_id,client_secret|apikey",
225 constructor(
string name,
string description,
string url, hash<auto> attributes = {}, hash<auto> options = {})
loginIntern(*reference< hash< auto > > info)
performs authentication and authorization with SAP using the OAuth2 authorization URL
static error(string fmt)
throws an exception due to an error
static string getString(hash< auto > opts, string key)
gets a string option
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options (which include the mandatory apikey option for SAP S/4Hana ...
static hash< auto > getOptions(hash< auto > opts)
returns options for the Sap4HanaRestClient::constructor()
class for SAP S/4Hana REST connections; returns Sap4HanaRestClient::Sap4HanaRestClient objects
Definition: Sap4HanaRestClient.qm.dox.h:190
Sap4HanaRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a Sap4HanaRestClient::Sap4HanaRestClient object
string getType()
returns "sap4hanarests"
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the Sap4HanaRestConnection object
const ConnectionScheme
Connection entry info.
Definition: Sap4HanaRestClient.qm.dox.h:194
the Sap4HanaRestClient namespace contains all the objects in the Sap4HanaRestClient module
Definition: Sap4HanaRestClient.qm.dox.h:86