ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
OAuthToken Class Reference

OAuth PECL extension includes an OAuth Exception class, so we need to wrap the definition of this class in order to avoid a PHP error. More...

+ Collaboration diagram for OAuthToken:

Public Member Functions

 __construct ($key, $secret)
 key = the token secret = the token secret More...
 
 to_string ()
 generates the basic string serialization of a token that a server would respond to request_token and access_token calls with More...
 
 __toString ()
 

Data Fields

 $key
 
 $secret
 

Detailed Description

OAuth PECL extension includes an OAuth Exception class, so we need to wrap the definition of this class in order to avoid a PHP error.

Definition at line 42 of file OAuth.php.

Constructor & Destructor Documentation

◆ __construct()

OAuthToken::__construct (   $key,
  $secret 
)

key = the token secret = the token secret

Definition at line 52 of file OAuth.php.

References $key.

53  {
54  $this->key = $key;
55  $this->secret = $secret;
56  }

Member Function Documentation

◆ __toString()

OAuthToken::__toString ( )

Definition at line 71 of file OAuth.php.

72  {
73  return $this->to_string();
74  }
to_string()
generates the basic string serialization of a token that a server would respond to request_token and ...
Definition: OAuth.php:62

◆ to_string()

OAuthToken::to_string ( )

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

Definition at line 62 of file OAuth.php.

References OAuthUtil\urlencode_rfc3986().

63  {
64  return "oauth_token=" .
65  OAuthUtil::urlencode_rfc3986($this->key) .
66  "&oauth_token_secret=" .
67  OAuthUtil::urlencode_rfc3986($this->secret) .
68  "&oauth_callback_confirmed=true";
69  }
static urlencode_rfc3986($input)
Definition: OAuth.php:827
+ Here is the call graph for this function:

Field Documentation

◆ $key

OAuthToken::$key

Definition at line 45 of file OAuth.php.

◆ $secret

OAuthToken::$secret

Definition at line 46 of file OAuth.php.


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