All Classes Namespaces Functions Variables Groups Pages
SewioRestClient Module

# SewioRestClient Introduction

The SewioRestClient module provides an API for calling REST services with Sewio.net's RTLS Studio servers.

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

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

The main classes are:

- SewioRestClient: this class provides the REST client API for communuication with Sewio.net's RTLS Studio REST API; it also automates authentication and authorization to the target Connected App
- SewioRestConnection: provides a REST connection object to a Sewio.net's RTLS Studio server (based on the ConnectionProvider module)

Example:
  #!/usr/bin/env qore
  %new-style
  %strict-args
  %require-types
  %enable-all-warnings
  %requires SewioRestClient
  hash opts = (
  "apikey": ENV.SEWIO_API_KEY,
  );
  SewioRestClient rest(opts);
  hash ans = rest.get("api/anchors");
  printf("%N\n", ans.body);

# Release Notes

## SewioRestClient v1.0

- the initial version of the SewioRestClient module