Qore MewsRestClient Module Reference 1.0
All Classes Namespaces Functions Variables Modules Pages

MewsRestClient Introduction

The MewsRestClient module provides an API for calling Mews REST API services.

To use this module, use "%requires MewsRestClient" in your code.

All the public symbols in the module are defined in the MewsRestClient namespace.

The main classes are:

  • MewsRestClient: this class provides the REST client API for communuication with the Mews REST API; it also automates authentication and authorization to the target
  • MewsRestConnection: provides a REST connection object to Mews cloud services (based on the ConnectionProvider module)
Example:
#!/usr/bin/env qore
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires MewsRestClient
%requires ConnectionProvider
MewsRestClient rest = get_connection("my-mews-connection");
hash<auto> ans = rest.get("/some/uri/path");
printf("%N\n", ans.body);

Release Notes

MewsRestClient v1.0

  • the initial version of the MewsRestClient module