dev-master
9999999-dev https://github.com/MDarnell/startupthreads-api-phpClient library for the StartupThreads API.
MIT
The Requires
- php >=5.3
The Development Requires
by Matthew Darnell
Wallogit.com
2017 © Pedro Peláez
Client library for the StartupThreads API.
Very simple and easy StartupThreads API wrapper, for PHP., (*1)
Complex wrappers are for noobs. This lets you access the StartupThreads API using the docs as directly as possible., (*2)
Requires PHP 5.3., (*3)
You can install the startupthreads-api-php using Composer. Just add the following to your composer.json:, (*4)
{
"require": {
"startupthreads/startupthreads-api-php": "dev-master"
}
}
You will then need to:
* run composer install to get these dependencies added to your vendor directory
* add the Composer autoloader to your application with this line: require("vendor/autoload.php"), (*5)
$st = new StartupThreads('api-token-here');
print_r($st->get('items.json'));
$st = new StartupThreads('api-token-here');
$result = $st->create('/inventory_shipments', array(
'inventory_shipment' => array(
payment_method' => "account_balance",
'test_mode' => 1
'line_items' => array(
array (
"item_id" => "dfsea4rs",
"size" => "MS",
"quantity" => 3
)
),
'address' => array (
"name" => "Frank Denbow",
"street1" => "902 Broadway",
"city" => "New York",
"state" => "New York",
"zip" => "10010",
"country" => "US"
)
);
));
print_r($result);
Client library for the StartupThreads API.
MIT