Download the PHP package waynestate/waynestate-api without Composer
On this page you can find all versions of the php package waynestate/waynestate-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download waynestate/waynestate-api
More information about waynestate/waynestate-api
Files in waynestate/waynestate-api
Download waynestate/waynestate-api
More information about waynestate/waynestate-api
Files in waynestate/waynestate-api
Vendor waynestate
Package waynestate-api
Short Description An API wrapper for the Wayne State University v1 API
License MIT
Homepage https://github.com/waynestate/waynestate-api-php
Package waynestate-api
Short Description An API wrapper for the Wayne State University v1 API
License MIT
Homepage https://github.com/waynestate/waynestate-api-php
Please rate this library. Is it a good library?
Informations about the package waynestate-api
Wayne State University API wrapper v1
PHP wrapper for the Wayne State University API http://api.wayne.edu/
Installation
To install this library, run the command below and you will get the latest version
composer require waynestate/waynestate-api
Usage
Create the object
# start.php
use Waynestate\Api\Connector;
...
$api = new Connector(API_KEY);
// Set the params
$params = array(
'promo_group_id' => 123,
'is_active' => '1',
'ttl' => TTL,
);
// Get promotions from the API
$promos = $api->sendRequest('cms/promotions/listing', $params);
Setting a unique endpoint before the Connector is instantiated
define('API_ENDPOINT', 'http://api.domain.com/v1/');
Setting a unique endpoint after the Connector is instantiated
$api->cmsREST = 'http://api.domain.com/v1/';
Temporarily using the 'production' endpoint
# Use the production endpoint for only the next $api->sendRequest() call
$api->nextRequestProduction();
Best used with the following packages:
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All versions of waynestate-api with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package waynestate/waynestate-api contains the following files
Loading the files please wait ....