Qore ZeyosRestClient Module Reference  1.0

ZeyosRestClient Introduction

The ZeyosRestClient module provides an API for calling REST services with zeyos.com CRM ERP system.

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

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

The main classes are:

  • ZeyosRestClient: this class provides the REST client API for communuication with zeyos.com's REST API; it also automates authentication and authorization to the target Connected App
  • ZeyosRestConnection: provides a REST connection object to a zeyos.com's CRM ERP server (based on the ConnectionProvider module)
Example:
#!/usr/bin/env qore
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires ZeyosRestClient
ZeyosRestClient zeyos(
{
"url": "https://cloud.zeyos.com/test",
"name": "test", "password": "test", "identifier": "id",
"appsecret": "8df3cc8be92d300edb9ff9b9a680d22eacbf2ee5"
});
hash<auto> action_data = {
"name": "Action name 1",
"description": "description",
"effort": 48,
"actionnum": 7771,
"status": 0,
};
hash<auto> response = zeyos.put("/api/v1/actionsteps", action_data, NOTHING, NOTHING);
printf("Response body: %N\n", response.body);

Release Notes

ZeyosRestClient v1.0

  • the initial version of the ZeyosRestClient module