xrely/php-client

client library for xrely platform. For more information please visit https://www.xrely.com

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/xrely/php-client

1.0.0 2021-06-26 14:51 UTC

This package is auto-updated.

Last update: 2025-12-25 23:32:00 UTC


README

API Documentation for XRELY platform

  • API version: 1.0.0

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/xrely-com/php_client.git"
    }
  ],
 "require": {
        "php": ">=5.5",
        "ext-curl": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "guzzlehttp/guzzle": "^6.2"
    },
    "require-dev": {
        "phpunit/phpunit": "^4.8",
        "squizlabs/php_codesniffer": "~2.6",
        "friendsofphp/php-cs-fixer": "~2.12"
    }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/XrelyClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

OR

 php vendor/phpunit/phpunit/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Xrely\Client\Api\DataApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Xrely\Client\Model\DataStoreRequest(); // \Xrely\Client\Model\DataStoreRequest | 

try {
    $result = $apiInstance->dataStoreDelete($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DataApi->dataStoreDelete: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://www.xrely.com/api/v1

Class Method HTTP request Description
DataApi dataStoreDelete DELETE /data/store Delete data from your account bucket
DataApi dataStorePost POST /data/store Insert data to your account bucket
SearchApi searchPost POST /search Provides relevant result for your query
SearchApi searchSuggestionsGet GET /search/suggestions Get autocomplete phrase or keywords for your query

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

info@xrely.com