awsm / lib-api-trustedshops
An API library for trustedshops
dev-main
2022-10-18 10:17 UTC
Requires
- awsm/lib-api: dev-main
Requires (Dev)
- phpunit/phpunit: 9.5
This package is auto-updated.
Last update: 2024-11-18 15:05:14 UTC
README
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 );