WpWodify\Api

Api Class

Encapsulation of all things related to connecting to the Wodify API.

Synopsis

class Api {
  • // constants
  • const ERR_API_NOT_AVAILABLE = 'The given api [%s], does not exist';
}

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

History