$darkmode

| Qore SewioRestClient Module Reference 1.4

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);
  printf
  string printf(string fmt,...)

# Release Notes

## SewioRestClient v1.4

- implemented support for a data provider scheme cache and rich option information for connections (issue 4025)

## SewioRestClient v1.3

- removed the `SewioRestConnection::getConstructorInfo()` and `SewioRestConnection::getConstructorInfoImpl()` methods (issue 3696)

## SewioRestClient v1.2

- all connection clases have unified constructor

## SewioRestClient v1.1

- added the `SewioConnection::getConstructorInfoImpl()` method to allow connections to be created dynamically, potentially in another process from a network call (removed in SewioRestClient 1.3) (issue 2628)

## SewioRestClient v1.0.1

- fixed a bug handling default options including timeouts in SewioRestConnection (issue 3321)

## SewioRestClient v1.0

- the initial version of the SewioRestClient module