My skills allow Alexa to tell you the number of subscribers of your Youtube Channel.
FirstYou need create a project on Google API Console and enable YouTube API 3.0.
and generate a Key API:
Replicate the same tutorial, but this time clone the HelloWorld Sample on
https://github.com/amzn/alexa-skills-kit-js/tree/master/samples/helloWorld
ThirdEnjoy, modifying the Hello World Sample.
You need install the sync-request library (request libraries ins't async and that is a big problem)
npm install sync-request
After, test the URL
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=&key=
with your YouTube Channel ID and generated Key.
After that, read the JSON and code the Skill is better easy.
Finally, add this code to Hello World Sample, modify the Invocation Name and Intents & Utterances
Comments