Download the PHP package oliverschloebe/oauth2-rbtv without Composer
On this page you can find all versions of the php package oliverschloebe/oauth2-rbtv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliverschloebe/oauth2-rbtv
More information about oliverschloebe/oauth2-rbtv
Files in oliverschloebe/oauth2-rbtv
Package oauth2-rbtv
Short Description Rocket Beans TV OAuth 2.0 package for the PHP League's OAuth 2.0 Client
License MIT
Informations about the package oauth2-rbtv
Rocket Beans TV Provider for OAuth 2.0 Client
This package provides Rocket Beans TV OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
Rocket Beans TV API
https://github.com/rocketbeans/rbtv-apidoc
Usage
Register your apps on rocketbeans.tv to get clientId
and clientSecret
.
OAuth2 Authentication Flow
Refreshing a Token
Once your application is authorized, you can refresh an expired token using a refresh token rather than going through the entire process of obtaining a brand new token. To do so, simply reuse this refresh token from your data store to request a refresh.
Sending authenticated API requests
The RBTV OAuth 2.0 provider provides a way to get an authenticated API request for the service, using the access token; it returns an object conforming to Psr\Http\Message\RequestInterface
.
Sending non-authenticated API requests
Send a non-authenticated API request to public endpoints of the RBTV API; it returns an object conforming to Psr\Http\Message\RequestInterface
.
Using a proxy
It is possible to use a proxy to debug HTTP calls made to RBTV. All you need to do is set the proxy and verify options when creating your RBTV OAuth2 instance. Make sure to enable SSL proxying in your proxy.
Requirements
PHP 5.6 or higher.
Testing
License
The MIT License (MIT). Please see License File for more information.