ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
OAuthToken Class Reference
+ 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

Definition at line 38 of file OAuth.php.

Constructor & Destructor Documentation

◆ __construct()

OAuthToken::__construct (   $key,
  $secret 
)

key = the token secret = the token secret

Definition at line 48 of file OAuth.php.

49  {
50  $this->key = $key;
51  $this->secret = $secret;
52  }

Member Function Documentation

◆ __toString()

OAuthToken::__toString ( )

Definition at line 66 of file OAuth.php.

67  {
68  return $this->to_string();
69  }
to_string()
generates the basic string serialization of a token that a server would respond to request_token and ...
Definition: OAuth.php:58

◆ 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 58 of file OAuth.php.

References OAuthUtil\urlencode_rfc3986().

59  {
60  return "oauth_token=" .
61  OAuthUtil::urlencode_rfc3986($this->key) .
62  "&oauth_token_secret=" .
63  OAuthUtil::urlencode_rfc3986($this->secret);
64  }
static urlencode_rfc3986($input)
Definition: OAuth.php:747
+ Here is the call graph for this function:

Field Documentation

◆ $key

OAuthToken::$key

Definition at line 41 of file OAuth.php.

◆ $secret

OAuthToken::$secret

Definition at line 42 of file OAuth.php.


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