LTI Integration Library
4.10.3
PHP class library for building LTI integrations
Loading...
Searching...
No Matches
OAuthToken.php
1
<?php
2
3
namespace
ceLTIc\LTI\OAuth;
4
12
class
OAuthToken
13
{
14
// Access tokens and request tokens
15
21
public
$key
;
22
28
public
$secret
;
29
36
function
__construct
(
$key
,
$secret
)
37
{
38
$this->key =
$key
;
39
$this->secret =
$secret
;
40
}
41
48
function
to_string
()
49
{
50
return
'oauth_token='
.
51
OAuthUtil::urlencode_rfc3986
($this->key) .
52
'&oauth_token_secret='
.
53
OAuthUtil::urlencode_rfc3986
($this->secret);
54
}
55
61
function
__toString
()
62
{
63
return
$this->
to_string
();
64
}
65
66
}
ceLTIc\LTI\OAuth\OAuthToken
Class to represent an OAuth token.
Definition
OAuthToken.php:13
ceLTIc\LTI\OAuth\OAuthToken\$secret
$secret
Secret.
Definition
OAuthToken.php:28
ceLTIc\LTI\OAuth\OAuthToken\__construct
__construct($key, $secret)
Class constructor.
Definition
OAuthToken.php:36
ceLTIc\LTI\OAuth\OAuthToken\__toString
__toString()
Convert object to a string.
Definition
OAuthToken.php:61
ceLTIc\LTI\OAuth\OAuthToken\to_string
to_string()
Generates the basic string serialization of a token that a server would respond to request_token and ...
Definition
OAuthToken.php:48
ceLTIc\LTI\OAuth\OAuthToken\$key
$key
Name.
Definition
OAuthToken.php:21
ceLTIc\LTI\OAuth\OAuthUtil\urlencode_rfc3986
static urlencode_rfc3986($input)
URL encode.
Definition
OAuthUtil.php:22
Generated on Tue Jun 13 2023 by
Doxygen 1.9.7