Download the PHP package webiny/twitter-oauth without Composer
On this page you can find all versions of the php package webiny/twitter-oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webiny/twitter-oauth
More information about webiny/twitter-oauth
Files in webiny/twitter-oauth
Package twitter-oauth
Short Description Webiny Twitter OAuth Component
License MIT
Homepage http://www.webiny.com/
Informations about the package twitter-oauth
TwitterOAuth
This component provides is a wrapper for Twitter OAuth server.
Install the component
The best way to install the component is using Composer.
For additional versions of the package, visit the Packagist page.
Configuring the component
To use the component, you first need to configure it. The configuration is done by defining the following params:
- ClientId - Twitter client id
- ClientSecret - Twitter client secret
- RedirectUri - location where the user will be redirected by the OAuth server, once he is authorized
Example configuration:
Dependency
The library requires abraham/twitteroauth
TwitterOAuth component. The will be installed automatically if you install
TwitterOAuth Webiny component using composer, however, you will need to include this file somewhere in your application
before you can use the component /path/to/abraham/twitteroauth/twitteroauth.php
.
Usage
Once you have configured the component, its usage is fairly simple if you have an access token. If you don't have an access token, the best way to get one, is to authenticate the user using the Security
component with TwitterOAuth as auth provider.
Resources
To run unit tests, you need to use the following command:
$ cd path/to/Webiny/Component/TwitterOAuth/
$ composer.phar install
$ phpunit
All versions of twitter-oauth with dependencies
webiny/std-lib Version ~1.6
webiny/http Version ~1.6
league/oauth1-client Version ~1.0