dev-master
9999999-dev https://github.com/Mika56/TwitchSDKBundleSimple wrapper around ritero/twitch-sdk
MIT
The Requires
- php >=5.3
- ritero/twitch-sdk dev-master
by Mikael Peigney
twitch twitch api twitch bundle
Simple wrapper around ritero/twitch-sdk
This bundle provides a simple integration of the "TwitchSDK" from "Josef Ohnheiser" into Symfony2., (*1)
<?php $twitch_api = $this->get('twitch');
$ php composer.phar require "mika56/twitch-sdk-bundle":"dev-master"
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Mika56\TwitchSDKBundle\Mika56TwitchSDKBundle(), // ... ); }
TwitchSDKBundle requires you to add some parameters in your parameters.yml file. You can either add "no configuration" (API calls will be anonymous) or specify your client_id, client_secret and redirect_uri:, (*2)
// app/config/parameters.yml twitch_settings: ~
or, (*3)
// app/config/parameters.yml twitch_settings: client_id: "your_twitch_app_client_id" client_secret: "your_twitch_app_client_secret" redirect_uri: "your_twitch_app_redirect_uri"
That's it!, (*4)
Simple wrapper around ritero/twitch-sdk
MIT
twitch twitch api twitch bundle