2017 © Pedro Peláez
 

library twitter-oauth

Webiny Twitter OAuth Component

image

webiny/twitter-oauth

Webiny Twitter OAuth Component

  • Friday, September 29, 2017
  • by SvenAlHamad
  • Repository
  • 2 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

TwitterOAuth

This component provides is a wrapper for Twitter OAuth server., (*1)

Install the component

The best way to install the component is using Composer., (*2)

composer require webiny/twitter-oauth

For additional versions of the package, visit the Packagist page., (*3)

Configuring the component

To use the component, you first need to configure it. The configuration is done by defining the following params:, (*4)

  • 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:

    TwitterOAuth:
        MyTwitterApp:
            ClientOd: AJmIXgXfaasdasaULBmnygIiGA
            ClientSecret: JE5dpb0a891ciisasdMOu7ELF9SI0TazR3hDAirft0Y
            RedirectUri: /security/login-tw/
        Bridge: \Webiny\Component\TwitterOAuth\Bridge\TwitterOAuth\TwitterOAuth

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., (*5)

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., (*6)

$tw = TwitterOAuthLoader::getInstance('MyTwitterApp');

$tw->setAccessToken(...);

// get user details for current access token
$user = $tw->getUserDetails(); // returns TwitterOAuthUser object

// perform any other API operation
$tw->get($url, $params);
$tw->post($url, $params);
$tw->delete($url, $params);

Resources

To run unit tests, you need to use the following command:, (*7)

$ cd path/to/Webiny/Component/TwitterOAuth/
$ composer.phar install
$ phpunit

The Versions

29/09 2017

dev-master

9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

29/09 2017

1.6.x-dev

1.6.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

29/09 2017

v1.6.0

1.6.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

29/09 2017

v1.6.1

1.6.1.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

08/09 2017

1.5.x-dev

1.5.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

08/09 2017

v1.5.0

1.5.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

21/08 2016

1.4.x-dev

1.4.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

21/08 2016

v1.4.3

1.4.3.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

04/02 2016

v1.4.0

1.4.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

04/02 2016

v1.4.1

1.4.1.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

04/02 2016

v1.4.2

1.4.2.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

16/03 2015

1.3.x-dev

1.3.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

16/03 2015

v1.3.0

1.3.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

05/02 2015

v1.2.1

1.2.1.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

05/02 2015

v1.2.2

1.2.2.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

05/02 2015

v1.2.3

1.2.3.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

04/02 2015

1.2.x-dev

1.2.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

04/02 2015

v1.2.0

1.2.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

28/11 2014

v1.1.1

1.1.1.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

20/09 2014

1.0.x-dev

1.0.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

20/09 2014

1.1.x-dev

1.1.9999999.9999999-dev http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

20/09 2014

v1.0.0

1.0.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter

20/09 2014

v1.1.0

1.1.0.0 http://www.webiny.com/

Webiny Twitter OAuth Component

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sven Al Hamad
by Pavel Denisjuk

oauth twitter