Simplify_Authentication

Simplify_Authentication - encapsulates the credentials needed to make a request to the Simplify API.

Defined (1)

The class is defined in the following location(s).

/includes/gateways/simplify-commerce/includes/Simplify/Authentication.php  
  1. class Simplify_Authentication { 
  2.  
  3. public $privateKey; 
  4. public $publicKey; 
  5. public $accessToken; 
  6.  
  7. function __construct() { 
  8. $args = func_get_args(); 
  9. switch( func_num_args() ) { 
  10. case 1: 
  11. self::__construct1( $args[0] ); 
  12. break; 
  13. case 2: 
  14. self::__construct2( $args[0], $args[1] ); 
  15. break; 
  16. case 3: 
  17. self::__construct3( $args[0], $args[1], $args[2] ); 
  18.  
  19. function __construct1($accessToken) { 
  20. $this->accessToken = $accessToken; 
  21.  
  22. function __construct2($publicKey, $privateKey) { 
  23. $this->publicKey = $publicKey; 
  24. $this->privateKey = $privateKey; 
  25.  
  26. function __construct3($publicKey, $privateKey, $accessToken) { 
  27. $this->publicKey = $publicKey; 
  28. $this->privateKey = $privateKey; 
  29. $this->accessToken = $accessToken;