1. Go to this page and download the library: Download joomla/oauth1 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joomla / oauth1 example snippets
use Joomla\Oauth1\Client;
use Joomla\Registry\Registry;
$options = new Registry;
$options->set('consumer_key', $key);
$options->set('consumer_secret', $secret);
$options->set('callback', $my_url);
$options->set('accessTokenURL', $accessToken);
$options->set('authenticateURL', $authenticate);
$options->set('authoriseURL', $authorise);
$options->set('requestTokenURL', $requestToken);
// Call the Client constructor.
parent::__construct($this->options);
$options->set('sendheaders', true);
// Set the stored access token.
$oauth->setToken($token);
$access_token = $oauth->authenticate();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.