2017 © Pedro Peláez
 

library waynestate-api

An API wrapper for the Wayne State University v1 API

image

waynestate/waynestate-api

An API wrapper for the Wayne State University v1 API

  • Tuesday, December 5, 2017
  • by nickdenardis
  • Repository
  • 10 Watchers
  • 0 Stars
  • 12,625 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 9 Versions
  • 7 % Grown

The README.md

Wayne State University API wrapper v1

PHP wrapper for the Wayne State University API http://api.wayne.edu/, (*1)

Installation

To install this library, run the command below and you will get the latest version, (*2)

composer require waynestate/waynestate-api

Usage

Create the object, (*3)

# 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, (*4)

define('API_ENDPOINT', 'http://api.domain.com/v1/');

Setting a unique endpoint after the Connector is instantiated, (*5)

$api->cmsREST = 'http://api.domain.com/v1/';

Temporarily using the 'production' endpoint, (*6)

# Use the production endpoint for only the next $api->sendRequest() call
$api->nextRequestProduction();

Best used with the following packages:, (*7)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

The Versions

05/12 2017

dev-master

9999999-dev https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

05/12 2017

dev-develop

dev-develop https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

05/12 2017

1.2.0

1.2.0.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

05/12 2017

dev-hotfix/1.2.0

dev-hotfix/1.2.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

13/04 2017

1.1.2

1.1.2.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.3

 

29/08 2016

1.1.1

1.1.1.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.3

 

29/08 2016

dev-hotfix/1.1.1

dev-hotfix/1.1.1 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.3

 

24/07 2015

1.1.0

1.1.0.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.3

 

24/01 2015

1.0.0

1.0.0.0 https://github.com/waynestate/waynestate-api-php

An API wrapper for the Wayne State University v1 API

  Sources   Download

MIT

The Requires

  • php >=5.3