include/SugarOauth.php
\SugarOAuth
Package: SugarCRM
Sugar Oauth consumer
- Parent(s)
- \Zend_Oauth_Consumer
- Api
Properties
Methods
__construct(
string $consumer_key, string $consumer_secret, array $params
=
null
)
:
void
Create OAuth client
Parameters
Name | Type | Description |
---|---|---|
$consumer_key | string | |
$consumer_secret | string | |
$params | array | OAuth options |
fetch(
string $url, string $params
=
null, string $method
=
'GET', array $headers
=
null
)
:
string
Fetch URL with OAuth
Parameters
Returns
Name | Type | Description |
---|---|---|
$url | string | |
$params | string | Query params |
$method | string | HTTP method |
$headers | array | HTTP headers |
Type | Description |
---|---|
string |
getAccessToken(
string $url
)
:
array
Retrieve access token from url
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
array |
- See
- \Zend_Oauth_Consumer::getAccessToken()
getRequestToken(
string $url, string $callback
=
null, array $params
=
array()
)
:
array
Retrieve request token from URL
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$url | string | |
$callback | string | Callback URL |
$params | array | Query params |
Type | Description |
---|---|
array |
- See
- \Zend_Oauth_Consumer::getRequestToken()
makeAccessToken(
)
:
\Zend_Oauth_Token_Access
Create access token object for current token
Returns
Type | Description |
---|---|
\Zend_Oauth_Token_Access |
makeRequestToken(
)
:
\Zend_Oauth_Token_Request
Create request token object for current token
Returns
Type | Description |
---|---|
\Zend_Oauth_Token_Request |