LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
OAuthToken Class Reference

Class to represent an OAuth token. More...

Public Member Functions

 __construct ($key, $secret)
 Class constructor.
 
 to_string ()
 Generates the basic string serialization of a token that a server would respond to request_token and access_token calls with.
 
 __toString ()
 Convert object to a string.
 

Data Fields

 $key
 Name.
 
 $secret
 Secret.
 

Detailed Description

Class to represent an OAuth token.

Version
2008-08-04
Licence: https://opensource.org/licenses/MIT The MIT License

Definition at line 12 of file OAuthToken.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $key,
  $secret 
)

Class constructor.

Parameters
string$keyThe token
string$secretThe token secret

Definition at line 36 of file OAuthToken.php.

References OAuthToken\$key, and OAuthToken\$secret.

Member Function Documentation

◆ __toString()

__toString ( )

Convert object to a string.

Returns
string

Definition at line 61 of file OAuthToken.php.

References OAuthToken\to_string().

◆ to_string()

to_string ( )

Generates the basic string serialization of a token that a server would respond to request_token and access_token calls with.

Returns
string

Definition at line 48 of file OAuthToken.php.

References OAuthUtil\urlencode_rfc3986().

Referenced by OAuthToken\__toString().

Field Documentation

◆ $key

string $key

Name.

Definition at line 21 of file OAuthToken.php.

Referenced by OAuthToken\__construct().

◆ $secret

string $secret

Secret.

Definition at line 28 of file OAuthToken.php.

Referenced by OAuthToken\__construct().


The documentation for this class was generated from the following file: