arcadier/arcadier-php

There is no license information available for the latest version (v1.9) of this package.

Arcadier's PHP SDK

v1.9 2020-09-24 17:54 UTC

This package is auto-updated.

Last update: 2024-05-05 13:12:01 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f61726361646965722f61726361646965722d70687068747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f41726361646965722f61726361646965722d706870

This PHP SDK is an API wrapper that allows developers to integrate their PHP applications easily with Arcadier's APIs. It does the heavily lifting of building the requests and authentication for every API call

Requirements

Getting Started

Download the required libraries to your directory using the following Composer command line:

composer require arcadier/arcadier-php

Find the .env file in the following directory created: "vendor\arcadier\arcadier-php\src" and replace the variables with the relevant values:

CLIENT_ID = ""
CLIENT_SECRET = ""
DOMAIN = ""
PROTOCOL = ""

Remember to load the SDK by including the following line in all your PHP scripts:

require "vendor\arcadier\arcadier-php\src\api.php";
$sdk = new ApiSdk();

Trying it

In every PHP script in your root directory, make sure to include api.php

require "vendor\arcadier\arcadier-php\src\api.php";
$sdk = new ApiSdk();

Then you will be able to call Arcadier's APIs in your script.

Get your marketplace's information

Endpoint: GET /api/v2/marketplaces

$marketplace_info = $sdk->getMarketplaceInfo();
echo $marketplace_info;

Listing all items:

Endpoint: GET /api/v2/items

$item_list = $sdk->getAllItems();
echo $item_list['Records']; //The actual array of items is in the "Records" field of the JSON response

Documentation for the SDK

The full documentation for the SDK can be found here.

Documentation for APIs

View our full API collection on Postman here: API Documentation.

Changelog

Our changelog can be accessed here.