Qore BillwerkRestClient Module Reference 1.1
Loading...
Searching...
No Matches
BillwerkRestClient.qm.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
4/* BillwerkRestClient.qm Copyright (C) 2017 - 2023 Qore Technologies, s.r.o.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23*/
24
25
26
27
28
93
102
103public:
104 const RequiredOptions = ...;
105
106
107 const AuthPath = "/oauth/token";
108
109private:
110 string client_id;
111 string client_secret;
112
113public:
114
116
158 constructor(hash<auto> options, *softbool do_not_connect) ;
159
160
162 static hash<auto> getOptions(hash<auto> options);
163};
164
166
177
178public:
180 const ConnectionScheme = <ConnectionSchemeInfo>{
181 "cls": Class::forName("BillwerkRestConnection"),
182 "options": RestConnection::ConnectionScheme.options + {
183 "client_id": <ConnectionOptionInfo>{
184 "type": "string",
185 "desc": "the client ID",
186 },
187 "client_secret": <ConnectionOptionInfo>{
188 "type": "string",
189 "desc": "the client secret",
190 "sensitive": True,
191 },
192 },
193 "required_options": foldl $1 + "," + $2, BillwerkRestClient::RequiredOptions,
194 };
195
197
207 constructor(string name, string description, string url, hash<auto> attributes = {}, hash<auto> options = {})
208 ;
209
210
212 string getType();
213
214
216 hash<auto> getConstructorOptions(hash<auto> options);
217
218
220
225protected:
226 BillwerkRestClient getImpl(bool connect = True, *hash<auto> rtopts);
227public:
228
229
231protected:
232 hash<ConnectionSchemeInfo> getConnectionSchemeInfoImpl();
233public:
234
235};
236};
constructor(hash< auto > options, *softbool do_not_connect)
creates the object with the given options
static hash< auto > getOptions(hash< auto > options)
returns options for the RestClient::constructor()
class for Billwerk.com REST connections; returns BillwerkRestClient::BillwerkRestClient objects
Definition: BillwerkRestClient.qm.dox.h:176
const ConnectionScheme
Connection entry info.
Definition: BillwerkRestClient.qm.dox.h:180
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
BillwerkRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a BillwerkRestClient::BillwerkRestClient object
hash< auto > getConstructorOptions(hash< auto > options)
gets options for the constructor
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the BillwerkRestConnection object
string getType()
returns "billwerkrest"
the BillwerkRestClient namespace contains all the objects in the BillwerkRestClient module
Definition: BillwerkRestClient.qm.dox.h:91