PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of andy honeycutt   PHP JWT Library API Base   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP JWT Library API Base
Send authenticated API requests using JWT
Author: By
Last change:
Date: 7 years ago
Size: 601 bytes
 

Contents

Class file image Download

README

JWT Api Base is a simple wrapper class for handling JWT auth and endpoint requests.

Configure

Modify the first few lines to define the api base auth URL for your JWT-auth enabled API, if needed change the username and password parameters to mirror the username and password fields required by your API provider.

For example:

define("URL_SUFFIX_AUTH", 'api-auth/');
define("PARAM_USERNAME", 'username');
define("PARAM_PASSWORD", 'password');

Changes to:

define("URL_SUFFIX_AUTH", 'jwt-auth/');
define("PARAM_USERNAME", 'user');
define("PARAM_PASSWORD", 'pass');