Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 599 Bytes

readme.md

File metadata and controls

29 lines (19 loc) · 599 Bytes

Awesome Lib API for Trusted Shops

Library for API requests to trusted shops.

Version 1.0.0-alpha-1

Example implementation

<?php

use AWSM\LibAPI\Examples\TrustedShopsAPI;
use AWSM\LibAPI\Examples\TrustedShopsAuth;
use AWSM\LibAPI\Examples\TrustedShopsReviews;


$auth  = new TrustedShopsAuth( TS_CLIENT_ID, TS_CLIENT_SECRET );
$api   = new TrustedShopsAPI( $auth );

$params = [
    'count' => 3,
    'status' => 'APPROVED',
    'orderBy' => 'rating'
];

$response = $api->request( '/reviews', 'GET', $params );