PHP Classes

File: docs/Api/SessionApi.md

Recommend this page to a friend!
  Classes of Francesco Danti   Scloby Client API   docs/Api/SessionApi.md   Download  
File: docs/Api/SessionApi.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Scloby Client API
Client to call Scloby cloud POS API
Author: By
Last change:
Date: 11 days ago
Size: 1,593 bytes
 

Contents

Class file image Download

Swagger\Client\SessionApi

All URIs are relative to https://api.scloby.com/v2

Method | HTTP request | Description ------------- | ------------- | ------------- sessionsMeGet | GET /sessions/me | Get Session

sessionsMeGet

> \Swagger\Client\Model\InlineResponse2003 sessionsMeGet()

Get Session

Get the active session

Example

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

// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Swagger\Client\Api\SessionApi(
    // 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(),
    $config
);

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

Parameters

This endpoint does not need any parameter.

Return type

\Swagger\Client\Model\InlineResponse2003

Authorization

oAuth2AuthCode

HTTP request headers

- Content-Type: Not defined - Accept: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)