tp TouchPointWP Lookup - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Lookup

Admin API class.

Constants

TTL

const TTL = HOUR_IN_SECONDS

Methods

api

bool tp\TouchPointWP\Interfaces\api::api(array uri)

Handle API requests

Arguments

  • uri array - The request URI already parsed by parse_url()

Returns

  • bool - False if endpoint is not found. Should print the result.

getLookup

mixed tp\TouchPointWP\Lookup::getLookup(string path, bool noCache)
  • Visibility: public
  • This method is static.

Arguments

  • path string* noCache bool

Returns

  • mixed -