Class JOAuth1Client
Joomla Platform class for interacting with an OAuth 1.0 and 1.0a server.
Direct known subclasses
Abstract
Package: Joomla\Platform\OAuth1
Deprecated: 4.0 Use the
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 13.1
Located at joomla/oauth1/client.php
Package: Joomla\Platform\OAuth1
Deprecated: 4.0 Use the
joomla/oauth1
framework package that will be bundled
insteadCopyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 13.1
Located at joomla/oauth1/client.php
Methods summary
public
|
#
__construct(
Constructor. |
public
array
|
|
public
|
#
oauthRequest( string $url, string $method, array $parameters, mixed $data = array(), array $headers = array() )
Method used to make an OAuth request. |
abstract public
|
|
public
string
|
|
public
string
|
#
safeEncode( mixed $data )
Encodes the string or array passed in a way compatible with OAuth. If an array is passed each array value will will be encoded. |
public static
string
|
|
abstract public
array
|
#
verifyCredentials( )
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. |
public
mixed
|
|
public
|
|
public
array
|
|
public
|
Magic methods summary
Properties summary
protected
|
$options |
#
Options for the JOAuth1Client object. |
protected
array
|
$token |
#
Contains access token key, secret and verifier. |
protected
|
$client |
#
The HTTP client object to use in sending HTTP requests. |
protected
|
$input |
#
The input object to use in retrieving GET/POST data. |
protected
|
$application |
#
The application object to send HTTP headers for redirects. |
protected
string
|
$version |
#
Selects which version of OAuth to use: 1.0 or 1.0a. |