wickedreports / php-sdk
PHP SDK for WickedReports
Installs: 36 545
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- ext-json: *
- respect/validation: ^1.1
Requires (Dev)
- phpunit/phpunit: ~6
- dev-master
- 1.7.0
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- dev-stage-fbcapi
- dev-feature/clicks
- dev-feature/WR-3547
- dev-feature/fix-marketing-data-validations
- dev-feature/fix-marketing-data-validation
- dev-feature/marketing-api-WR-2665
- dev-feature/marketing-data
This package is auto-updated.
Last update: 2024-10-23 09:58:26 UTC
README
Documentation
You can find current API documentation in this doc.
Install
Using the composer CLI:
composer require wickedreports/php-sdk
Or manually add it to your composer.json:
{ "require": { "wickedreports/php-sdk": "1.5.*" } }
Authentication
To use API SDK, you should have your own API key.
$api = new \WickedReports\WickedReports($yourApiKey); $api->addOrders($orders);
Examples
You can see list of usage examples in examples/example.php
file.
Dates
DateTime objects are used instead of a DateTime string where the date(time) is a parameter in the method.
$datetime = new \DateTime('now', new \DateTimeZone('America/New_York'));
As other way, you can use simple date-time string with timezone
property set.
[ 'CreateDate' => '2017-08-01 00:05:01', 'timezone' => 'EST' ]
You can see list of supported timezones on PHP.net website.
You have to use one of these ways to provide date time, otherwise you will get error or wrong date saved into our DB.
Provided date-time string will be automatically converted to UTC timezone, as it requires our API documentation.
Testing
$ phpunit
License
The MIT License (MIT). Please see License File for more information.