Skip to content

TheMiguelBi/CubE_Youtube_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino-youtube-api

A wrapper for the YouTube API for Arduino (works on ESP8266)

Currently the only implemented method is getting the channel statistics but it can be easily extended. Please raise an issue if there is a method you are looking for.

Imgur

Getting a Google Apps API key (Required!)

Installing

The downloaded code can be included as a new library into the IDE selecting the menu:

 Sketch / include Library / Add .Zip library

You also have to install the ArduinoJson library written by Benoît Blanchon. Search for it on the Arduino Library manager or get it from here.

Include YoutubeApi in your project:

#include <YoutubeApi.h>

and pass it a Bot token and a SSL Client (See the examples for more details)

#define API_KEY "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
// WiFiSSLClient client; //For 101 boards
WiFiClientSecure client; //For ESP8266 boards
YoutubeApi bot(API_KEY, client);

NOTE: This library has not been tested with the 101 boards as I do not have a compatible board. If you can help please let me know!

About

Program for ESP8266 to view the Youtube counter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages