Twitch Api Bundle
Configuration
parameters.yml
Add parameters to final and dist yml, (*1)
parameters.yml.dist, (*2)
parameters:
twitch_api_client_id: ~
twitch_api_client_secret: ~
parameters.yml, (*3)
parameters:
twitch_api_client_id: YOUR_TWITCH_CLIENT_ID
twitch_api_client_secret: YOUR_TWITCH_CLIENT_SECRET
config.yml
Link you parameters with the config file;
Bundle will use client id and secret for api calls., (*4)
twitch_api:
client:
id: '%twitch_api_client_id%'
secret: '%twitch_api_client_secret%'
routing.yml (optional)
This is optional.
Will expose api calls, and documentations., (*5)
twitch_api_bundle:
resource: '@TwitchApiBundle/Resources/config/routing.yml'