WpWodify\Api
Api Class
Encapsulation of all things related to connecting to the Wodify API.
- Author: Cory Collier <corycollier@corycollier.com>
Synopsis
- // constants
- const ERR_API_NOT_AVAILABLE = 'The given api [%s], does not exist';
- // members
- protected $api_key;
- protected array $endpoints = ;
- // methods
- public string get_api_key()
- public Api set_api_key()
- public string get_api_uri()
- public string get()
Coverage
Methods | 100% | 4 / 4 |
Lines | 100% | 18 / 18 |
Constants
Name | Value |
---|---|
ERR_API_NOT_AVAILABLE | 'The given api [%s], does not exist' |
Members
protected
- $api_key
—
string
Stores the API key. - $endpoints
—
array
A list of endpoints available.
Methods
public
- get() — Gets a result for a given api.
- get_api_key() — Getter for the api_key attribute.
- get_api_uri() — Gets the full uri for a given api name.
- set_api_key() — Setter for the api_key attribute.
History
-
2015-12-31T10:01:00-05:00 (commit #ef9239c)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Fixing syntax issues, moving test files
-
2015-12-31T06:37:21-05:00 (commit #ddf9acd)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Enforcing Yoda conditions on a conditional in the api class
-
2015-12-31T05:49:44-05:00 (commit #307c02c)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Moving classes around to conform with WP coding standards regarding the naming convention of class files
-
2015-12-31T05:47:14-05:00 (commit #43a6d30)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Adding an Overlord (to rule all things), and a loader class. Also introducting an installer class. Updating other code to conform to WP coding standards (which, I personally don't agree with, but hey, whatevs)
-
2015-12-31T05:01:32-05:00 (commit #dc865c1)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Wordpress coding standards updates. Changing the base class for exceptions to ErrorException
-
2015-12-30T17:20:06-05:00 (commit #4e6c550)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
First commit of the major rewrite. Changing to a composer-type package setup. Will be much more OO oriented