Quaris

Badge

badgesBadgenameGet

Badge Information

The Badge Information endpoint returns information about the given badge.


/badges/{badgename}

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/badges/{badgename}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BadgeApi;

import java.io.File;
import java.util.*;

public class BadgeApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        BadgeApi apiInstance = new BadgeApi();
        String badgename = badgename_example; // String | A specific Badge's name
        try {
            BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesBadgenameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BadgeApi;

public class BadgeApiExample {

    public static void main(String[] args) {
        BadgeApi apiInstance = new BadgeApi();
        String badgename = badgename_example; // String | A specific Badge's name
        try {
            BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesBadgenameGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *badgename = badgename_example; // A specific Badge's name

BadgeApi *apiInstance = [[BadgeApi alloc] init];

// Badge Information
[apiInstance badgesBadgenameGetWith:badgename
              completionHandler: ^(BadgeDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.BadgeApi()

var badgename = badgename_example; // {String} A specific Badge's name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.badgesBadgenameGet(badgename, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class badgesBadgenameGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new BadgeApi();
            var badgename = badgename_example;  // String | A specific Badge's name

            try
            {
                // Badge Information
                BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BadgeApi.badgesBadgenameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\BadgeApi();
$badgename = badgename_example; // String | A specific Badge's name

try {
    $result = $api_instance->badgesBadgenameGet($badgename);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BadgeApi->badgesBadgenameGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Path parameters
Name Description
badgename*

Responses

Status: 200 - Badge object

Status: 404 - Badge not found

Status: 0 - Unexpected error


badgesGet

All Badges

The Badges endpoint returns information about all the badges existing.


/badges

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/badges"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BadgeApi;

import java.io.File;
import java.util.*;

public class BadgeApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        BadgeApi apiInstance = new BadgeApi();
        try {
            array[BadgeDTO] result = apiInstance.badgesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BadgeApi;

public class BadgeApiExample {

    public static void main(String[] args) {
        BadgeApi apiInstance = new BadgeApi();
        try {
            array[BadgeDTO] result = apiInstance.badgesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


BadgeApi *apiInstance = [[BadgeApi alloc] init];

// All Badges
[apiInstance badgesGetWithCompletionHandler: 
              ^(array[BadgeDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.BadgeApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.badgesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class badgesGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new BadgeApi();

            try
            {
                // All Badges
                array[BadgeDTO] result = apiInstance.badgesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BadgeApi.badgesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\BadgeApi();

try {
    $result = $api_instance->badgesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BadgeApi->badgesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - Badge's information

Status: 0 - Unexpected error


badgesPost

Create a new Badge

Create a new Badge.


/badges

Usage and SDK Samples

curl -X post -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/badges"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BadgeApi;

import java.io.File;
import java.util.*;

public class BadgeApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        BadgeApi apiInstance = new BadgeApi();
        BadgeDTO badge = ; // BadgeDTO | Badge to add
        try {
            apiInstance.badgesPost(badge);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BadgeApi;

public class BadgeApiExample {

    public static void main(String[] args) {
        BadgeApi apiInstance = new BadgeApi();
        BadgeDTO badge = ; // BadgeDTO | Badge to add
        try {
            apiInstance.badgesPost(badge);
        } catch (ApiException e) {
            System.err.println("Exception when calling BadgeApi#badgesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

BadgeDTO *badge = ; // Badge to add

BadgeApi *apiInstance = [[BadgeApi alloc] init];

// Create a new Badge
[apiInstance badgesPostWith:badge
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.BadgeApi()

var badge = ; // {BadgeDTO} Badge to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.badgesPost(badge, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class badgesPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new BadgeApi();
            var badge = new BadgeDTO(); // BadgeDTO | Badge to add

            try
            {
                // Create a new Badge
                apiInstance.badgesPost(badge);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BadgeApi.badgesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\BadgeApi();
$badge = ; // BadgeDTO | Badge to add

try {
    $api_instance->badgesPost($badge);
} catch (Exception $e) {
    echo 'Exception when calling BadgeApi->badgesPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
badge *

Responses

Status: 201 - Badge was created

Status: 409 - Conflict, the badge name already exists

Status: 0 - Unexpected error


Default

authenticateApplicationAndGetToken


/auth

Usage and SDK Samples

curl -X post "https://api.quaris.com/v1/auth"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        CredentialsDTO body = ; // CredentialsDTO | The info required to authenticate an application
        try {
            TokenDTO result = apiInstance.authenticateApplicationAndGetToken(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticateApplicationAndGetToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CredentialsDTO body = ; // CredentialsDTO | The info required to authenticate an application
        try {
            TokenDTO result = apiInstance.authenticateApplicationAndGetToken(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticateApplicationAndGetToken");
            e.printStackTrace();
        }
    }
}
CredentialsDTO *body = ; // The info required to authenticate an application

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance authenticateApplicationAndGetTokenWith:body
              completionHandler: ^(TokenDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');

var api = new Quaris.DefaultApi()

var body = ; // {CredentialsDTO} The info required to authenticate an application


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authenticateApplicationAndGetToken(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class authenticateApplicationAndGetTokenExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new CredentialsDTO(); // CredentialsDTO | The info required to authenticate an application

            try
            {
                TokenDTO result = apiInstance.authenticateApplicationAndGetToken(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.authenticateApplicationAndGetToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$body = ; // CredentialsDTO | The info required to authenticate an application

try {
    $result = $api_instance->authenticateApplicationAndGetToken($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->authenticateApplicationAndGetToken: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
body *

Responses

Status: 204 - Authentication sucessful

Status: 401 - Authentication failed


findAllUser

Retrieve all users


/users

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        try {
            array[UserDetailsDTO] result = apiInstance.findAllUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAllUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[UserDetailsDTO] result = apiInstance.findAllUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAllUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance findAllUserWithCompletionHandler: 
              ^(array[UserDetailsDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findAllUser(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findAllUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DefaultApi();

            try
            {
                array[UserDetailsDTO] result = apiInstance.findAllUser();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAllUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findAllUser();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAllUser: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - Returns the specified user details

Status: 404 - No users found


findUserById

Retrieve one user by identifier


/users/{id}

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | id of the user to fetch
        try {
            UserDetailsDTO result = apiInstance.findUserById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findUserById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | id of the user to fetch
        try {
            UserDetailsDTO result = apiInstance.findUserById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findUserById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // id of the user to fetch

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance findUserByIdWith:id
              completionHandler: ^(UserDetailsDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.DefaultApi()

var id = id_example; // {String} id of the user to fetch


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findUserById(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findUserByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | id of the user to fetch

            try
            {
                UserDetailsDTO result = apiInstance.findUserById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findUserById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\DefaultApi();
$id = id_example; // String | id of the user to fetch

try {
    $result = $api_instance->findUserById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findUserById: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Path parameters
Name Description
id*

Responses

Status: 200 - Returns the specified user details

Status: 404 - User not found


registrationsGet


/registrations

Usage and SDK Samples

curl -X get "https://api.quaris.com/v1/registrations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[RegistrationSummaryDTO] result = apiInstance.registrationsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registrationsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[RegistrationSummaryDTO] result = apiInstance.registrationsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registrationsGet");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance registrationsGetWithCompletionHandler: 
              ^(array[RegistrationSummaryDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');

var api = new Quaris.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registrationsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registrationsGetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                array[RegistrationSummaryDTO] result = apiInstance.registrationsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.registrationsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->registrationsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->registrationsGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - List all registered applications


registrationsPost


/registrations

Usage and SDK Samples

curl -X post "https://api.quaris.com/v1/registrations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        RegistrationDTO body = ; // RegistrationDTO | The info required to register an application
        try {
            apiInstance.registrationsPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registrationsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        RegistrationDTO body = ; // RegistrationDTO | The info required to register an application
        try {
            apiInstance.registrationsPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registrationsPost");
            e.printStackTrace();
        }
    }
}
RegistrationDTO *body = ; // The info required to register an application

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance registrationsPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');

var api = new Quaris.DefaultApi()

var body = ; // {RegistrationDTO} The info required to register an application


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.registrationsPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registrationsPostExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new RegistrationDTO(); // RegistrationDTO | The info required to register an application

            try
            {
                apiInstance.registrationsPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.registrationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$body = ; // RegistrationDTO | The info required to register an application

try {
    $api_instance->registrationsPost($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->registrationsPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Register a new application


Event

reportEvent

Create a new event

When an event happens on the client side, an Event object is posted to the API.


/events

Usage and SDK Samples

curl -X post -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/events"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventApi;

import java.io.File;
import java.util.*;

public class EventApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        EventApi apiInstance = new EventApi();
        EventDTO event = ; // EventDTO | Event to add
        try {
            EventDTO result = apiInstance.reportEvent(event);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventApi#reportEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventApi;

public class EventApiExample {

    public static void main(String[] args) {
        EventApi apiInstance = new EventApi();
        EventDTO event = ; // EventDTO | Event to add
        try {
            EventDTO result = apiInstance.reportEvent(event);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventApi#reportEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

EventDTO *event = ; // Event to add

EventApi *apiInstance = [[EventApi alloc] init];

// Create a new event
[apiInstance reportEventWith:event
              completionHandler: ^(EventDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.EventApi()

var event = ; // {EventDTO} Event to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportEvent(event, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class reportEventExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new EventApi();
            var event = new EventDTO(); // EventDTO | Event to add

            try
            {
                // Create a new event
                EventDTO result = apiInstance.reportEvent(event);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventApi.reportEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\EventApi();
$event = ; // EventDTO | Event to add

try {
    $result = $api_instance->reportEvent($event);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventApi->reportEvent: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
event *

Responses

Status: 202 - Event was accepted

Status: 0 - Unexpected error


Point

pointsGet

All Scales

The Scales endpoint returns information about all the points.


/points

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/points"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PointApi;

import java.io.File;
import java.util.*;

public class PointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PointApi apiInstance = new PointApi();
        try {
            array[PointDTO] result = apiInstance.pointsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PointApi#pointsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PointApi;

public class PointApiExample {

    public static void main(String[] args) {
        PointApi apiInstance = new PointApi();
        try {
            array[PointDTO] result = apiInstance.pointsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PointApi#pointsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


PointApi *apiInstance = [[PointApi alloc] init];

// All Scales
[apiInstance pointsGetWithCompletionHandler: 
              ^(array[PointDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.PointApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pointsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pointsGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PointApi();

            try
            {
                // All Scales
                array[PointDTO] result = apiInstance.pointsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PointApi.pointsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\PointApi();

try {
    $result = $api_instance->pointsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PointApi->pointsGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - Points information

Status: 0 - Unexpected error


pointsIdentifierGet

All Scales

The Scales endpoint returns information about all the existing scales.


/points/{identifier}

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/points/{identifier}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PointApi;

import java.io.File;
import java.util.*;

public class PointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PointApi apiInstance = new PointApi();
        String identifier = identifier_example; // String | Identifier
        try {
            array[PointDTO] result = apiInstance.pointsIdentifierGet(identifier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PointApi#pointsIdentifierGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PointApi;

public class PointApiExample {

    public static void main(String[] args) {
        PointApi apiInstance = new PointApi();
        String identifier = identifier_example; // String | Identifier
        try {
            array[PointDTO] result = apiInstance.pointsIdentifierGet(identifier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PointApi#pointsIdentifierGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *identifier = identifier_example; // Identifier

PointApi *apiInstance = [[PointApi alloc] init];

// All Scales
[apiInstance pointsIdentifierGetWith:identifier
              completionHandler: ^(array[PointDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.PointApi()

var identifier = identifier_example; // {String} Identifier


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pointsIdentifierGet(identifier, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pointsIdentifierGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PointApi();
            var identifier = identifier_example;  // String | Identifier

            try
            {
                // All Scales
                array[PointDTO] result = apiInstance.pointsIdentifierGet(identifier);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PointApi.pointsIdentifierGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\PointApi();
$identifier = identifier_example; // String | Identifier

try {
    $result = $api_instance->pointsIdentifierGet($identifier);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PointApi->pointsIdentifierGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Path parameters
Name Description
identifier*

Responses

Status: 200 - User's scales information

Status: 0 - Unexpected error


Rule

rulesGet

All Rules

The Rules endpoint returns information about all the existing rules.


/rules

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/rules"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RuleApi;

import java.io.File;
import java.util.*;

public class RuleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RuleApi apiInstance = new RuleApi();
        try {
            array[RuleDTO] result = apiInstance.rulesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RuleApi;

public class RuleApiExample {

    public static void main(String[] args) {
        RuleApi apiInstance = new RuleApi();
        try {
            array[RuleDTO] result = apiInstance.rulesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


RuleApi *apiInstance = [[RuleApi alloc] init];

// All Rules
[apiInstance rulesGetWithCompletionHandler: 
              ^(array[RuleDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.RuleApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.rulesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rulesGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RuleApi();

            try
            {
                // All Rules
                array[RuleDTO] result = apiInstance.rulesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RuleApi.rulesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\RuleApi();

try {
    $result = $api_instance->rulesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RuleApi->rulesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - Rules' information

Status: 0 - Unexpected error


rulesIdDelete

Delete an existing Rule

Delete an existing Rule


/rules/{id}

Usage and SDK Samples

curl -X delete -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/rules/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RuleApi;

import java.io.File;
import java.util.*;

public class RuleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RuleApi apiInstance = new RuleApi();
        String id = id_example; // String | Rule id
        try {
            apiInstance.rulesIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RuleApi;

public class RuleApiExample {

    public static void main(String[] args) {
        RuleApi apiInstance = new RuleApi();
        String id = id_example; // String | Rule id
        try {
            apiInstance.rulesIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // Rule id

RuleApi *apiInstance = [[RuleApi alloc] init];

// Delete an existing Rule
[apiInstance rulesIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.RuleApi()

var id = id_example; // {String} Rule id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.rulesIdDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rulesIdDeleteExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RuleApi();
            var id = id_example;  // String | Rule id

            try
            {
                // Delete an existing Rule
                apiInstance.rulesIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RuleApi.rulesIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\RuleApi();
$id = id_example; // String | Rule id

try {
    $api_instance->rulesIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling RuleApi->rulesIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Path parameters
Name Description
id*

Responses

Status: 204 - Rule deleted successfully

Status: 0 - Unexpected error


rulesIdPut

Modify existing Rule

Modify an existing Rule


/rules/{id}

Usage and SDK Samples

curl -X put -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/rules/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RuleApi;

import java.io.File;
import java.util.*;

public class RuleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RuleApi apiInstance = new RuleApi();
        String id = id_example; // String | Rule id
        RuleDTO data = ; // RuleDTO | new Rule data
        try {
            apiInstance.rulesIdPut(id, data);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RuleApi;

public class RuleApiExample {

    public static void main(String[] args) {
        RuleApi apiInstance = new RuleApi();
        String id = id_example; // String | Rule id
        RuleDTO data = ; // RuleDTO | new Rule data
        try {
            apiInstance.rulesIdPut(id, data);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesIdPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // Rule id
RuleDTO *data = ; // new Rule data

RuleApi *apiInstance = [[RuleApi alloc] init];

// Modify existing Rule
[apiInstance rulesIdPutWith:id
    data:data
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.RuleApi()

var id = id_example; // {String} Rule id

var data = ; // {RuleDTO} new Rule data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.rulesIdPut(id, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rulesIdPutExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RuleApi();
            var id = id_example;  // String | Rule id
            var data = new RuleDTO(); // RuleDTO | new Rule data

            try
            {
                // Modify existing Rule
                apiInstance.rulesIdPut(id, data);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RuleApi.rulesIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\RuleApi();
$id = id_example; // String | Rule id
$data = ; // RuleDTO | new Rule data

try {
    $api_instance->rulesIdPut($id, $data);
} catch (Exception $e) {
    echo 'Exception when calling RuleApi->rulesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Path parameters
Name Description
id*
Body parameters
Name Description
data *

Responses

Status: 200 - Rule modified successfully

Status: 0 - Unexpected error


rulesPost

Create a new Rule

Create a new Rule.


/rules

Usage and SDK Samples

curl -X post -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/rules"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RuleApi;

import java.io.File;
import java.util.*;

public class RuleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RuleApi apiInstance = new RuleApi();
        RuleDTO rule = ; // RuleDTO | Rule to add
        try {
            apiInstance.rulesPost(rule);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RuleApi;

public class RuleApiExample {

    public static void main(String[] args) {
        RuleApi apiInstance = new RuleApi();
        RuleDTO rule = ; // RuleDTO | Rule to add
        try {
            apiInstance.rulesPost(rule);
        } catch (ApiException e) {
            System.err.println("Exception when calling RuleApi#rulesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

RuleDTO *rule = ; // Rule to add

RuleApi *apiInstance = [[RuleApi alloc] init];

// Create a new Rule
[apiInstance rulesPostWith:rule
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.RuleApi()

var rule = ; // {RuleDTO} Rule to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.rulesPost(rule, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rulesPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RuleApi();
            var rule = new RuleDTO(); // RuleDTO | Rule to add

            try
            {
                // Create a new Rule
                apiInstance.rulesPost(rule);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RuleApi.rulesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\RuleApi();
$rule = ; // RuleDTO | Rule to add

try {
    $api_instance->rulesPost($rule);
} catch (Exception $e) {
    echo 'Exception when calling RuleApi->rulesPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
rule *

Responses

Status: 201 - Rule was created

Status: 409 - Conflict, the rule name already exists

Status: 0 - Unexpected error


Scale

scalesGet

All Scales

The Scales endpoint returns information about all the existing scales.


/scales

Usage and SDK Samples

curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/scales"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScaleApi;

import java.io.File;
import java.util.*;

public class ScaleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ScaleApi apiInstance = new ScaleApi();
        try {
            array[ScaleDTO] result = apiInstance.scalesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScaleApi#scalesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScaleApi;

public class ScaleApiExample {

    public static void main(String[] args) {
        ScaleApi apiInstance = new ScaleApi();
        try {
            array[ScaleDTO] result = apiInstance.scalesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScaleApi#scalesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


ScaleApi *apiInstance = [[ScaleApi alloc] init];

// All Scales
[apiInstance scalesGetWithCompletionHandler: 
              ^(array[ScaleDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.ScaleApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scalesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scalesGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ScaleApi();

            try
            {
                // All Scales
                array[ScaleDTO] result = apiInstance.scalesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScaleApi.scalesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\ScaleApi();

try {
    $result = $api_instance->scalesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScaleApi->scalesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Responses

Status: 200 - Scales' information

Status: 0 - Unexpected error


scalesPost

Create a new Scale

Create a new Scale.


/scales

Usage and SDK Samples

curl -X post -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/scales"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScaleApi;

import java.io.File;
import java.util.*;

public class ScaleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ScaleApi apiInstance = new ScaleApi();
        ScaleDTO scale = ; // ScaleDTO | Scale to add
        try {
            apiInstance.scalesPost(scale);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScaleApi#scalesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScaleApi;

public class ScaleApiExample {

    public static void main(String[] args) {
        ScaleApi apiInstance = new ScaleApi();
        ScaleDTO scale = ; // ScaleDTO | Scale to add
        try {
            apiInstance.scalesPost(scale);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScaleApi#scalesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

ScaleDTO *scale = ; // Scale to add

ScaleApi *apiInstance = [[ScaleApi alloc] init];

// Create a new Scale
[apiInstance scalesPostWith:scale
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new Quaris.ScaleApi()

var scale = ; // {ScaleDTO} Scale to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.scalesPost(scale, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scalesPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ScaleApi();
            var scale = new ScaleDTO(); // ScaleDTO | Scale to add

            try
            {
                // Create a new Scale
                apiInstance.scalesPost(scale);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScaleApi.scalesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\ScaleApi();
$scale = ; // ScaleDTO | Scale to add

try {
    $api_instance->scalesPost($scale);
} catch (Exception $e) {
    echo 'Exception when calling ScaleApi->scalesPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Body parameters
Name Description
scale *

Responses

Status: 201 - Scale was created

Status: 409 - Conflict, the Scale name already exists

Status: 0 - Unexpected error


Generated 2017-01-27T12:31:21.044Z