Class for Mews REST connections; returns MewsRestClient objects.  
 More...
#include <MewsRestClient.qm.dox.h>
|  | 
| const | ConnectionScheme = ... | 
|  | Connection entry info. 
 | 
|  | 
| const | DefaultMewsPingBody = "auto" | 
|  | Default Mews ping body. 
 | 
|  | 
| const | DefaultMewsPingHeaders = ... | 
|  | Default Mews ping headers. 
 | 
|  | 
| const | DefaultMewsPingMethod = "POST" | 
|  | Default Mews ping method. 
 | 
|  | 
| const | DefaultMewsPingPath = "configuration/get" | 
|  | Defualt Mews ping path. 
 | 
|  | 
| const | MewsUnsupportedRestOptions = ... | 
|  | REST options not supported by this class. 
 | 
|  | 
|  | 
| hash< ConnectionSchemeInfo > | getConnectionSchemeInfoImpl () | 
|  | Returns the ConnectionSchemeInfo hash for this object. 
 | 
|  | 
| MewsRestClient | getImpl (bool connect=True, *hash< auto > rtopts) | 
|  | returns a MewsRestClient object 
 | 
|  | 
| *string | getPingPath () | 
|  | Returns the ping path from the ping_pathoption.
 | 
|  | 
|  | setChildCapabilities () | 
|  | Sets child data provider capabilities. 
 | 
|  | 
Class for Mews REST connections; returns MewsRestClient objects. 
This class implements a subset of RestClientConnection; in addition, this class requires values for the following options:
- client_token
- access_token
- See also
- MewsRestClient::MewsRestClient::constructor() for more information on the above options 
◆ constructor()
      
        
          | MewsRestClient::MewsRestConnection::constructor | ( | hash< auto > | config, | 
        
          |  |  | *hash< auto > | attr | 
        
          |  | ) |  |  | 
      
 
creates the MewsRestConnection object 
- Parameters
- 
  
    | config | with the following keys: 
name (required string): the connection namedisplay_name (optional string): the display nameshort_desc (optional string): a short description in plain textdesc (optional string): a long description with markdown formattingurl (required string): the connection URLopts (optional hash): connection optionslogger (optional LoggerInterface object): logger for the connection  |  | attr | optional connection attributes 
monitor (optional bool): should the connection be monitored? Default: Trueenabled (optional bool): is the connection enabled? Default: Truelocked (optional bool): is the connection locked? Default: Falsedebug_data (optional bool): debug data? Default: Falsetags (optional hash): tags for the connection; no default value |  
 
- Exceptions
- 
  
    | CONNECTION-OPTION-ERROR | missing or invalid connection option or attribute |  
 
 
 
◆ getAppName()
      
        
          | *string MewsRestClient::MewsRestConnection::getAppName | ( |  | ) |  | 
      
 
Returns the data provider application name this connection serves, if any. 
- Returns
- the data provider application name this connection serves, if any 
 
 
◆ getDataProvider()
      
        
          | DataProvider::AbstractDataProvider MewsRestClient::MewsRestConnection::getDataProvider | ( | *hash< auto > | constructor_options | ) |  | 
      
 
returns a data provider object for this connection 
- Parameters
- 
  
    | constructor_options | any additional constructor options for the data provider |  
 
- Returns
- a data provider object for this connection 
 
 
◆ getImpl()
  
  | 
        
          | MewsRestClient MewsRestClient::MewsRestConnection::getImpl | ( | bool | connect = True, |  
          |  |  | *hash< auto > | rtopts |  
          |  | ) |  |  |  | private | 
 
returns a MewsRestClient object 
- Parameters
- 
  
    | connect | if True, then the connection is returned already connected |  | rtopts | this connection type does not accept any runtime options, so this parameter is ignored |  
 
- Returns
- a MewsRestClient object 
 
 
◆ hasDataProvider()
      
        
          | bool MewsRestClient::MewsRestConnection::hasDataProvider | ( |  | ) |  | 
      
 
 
◆ startPollConnect()
Called to start a non-blocking polling ping operation on the remote REST server. 
- Returns
- a socket poll operation object that will allow the connection goal to be reached with polling
- See also
- supportsPollingApi()