Skip to content

Commit bb0f086

Browse files
committed
Updating readme
1 parent 6cf38b3 commit bb0f086

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,24 @@ Currently the only implemented method is getting the channel statistics but it c
1212
* Enable your application to communicate the YouTube Api [here](https://console.developers.google.com/apis/api/youtube)
1313
* Make sure the following URL works for you in your browser (Change the key at the end!):
1414
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCu7_D0o48KbfhpEohoP7YSQ&key=PutYourNewlyGeneratedKeyHere
15+
16+
## Installing
17+
18+
The downloaded code can be included as a new library into the IDE selecting the menu:
19+
20+
Sketch / include Library / Add .Zip library
21+
22+
You also have to install the ArduinoJson library written by [Benoît Blanchon](https://github.com/bblanchon). Search for it on the Arduino Library manager or get it from [here](https://github.com/bblanchon/ArduinoJson).
23+
24+
Include YoutubeApi in your project:
25+
26+
#include <YoutubeApi.h>
27+
28+
and pass it a Bot token and a SSL Client (See the examples for more details)
29+
30+
#define API_KEY "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
31+
// WiFiSSLClient client; //For 101 boards
32+
WiFiClientSecure client; //For ESP8266 boards
33+
YoutubeApi bot(API_KEY, client);
34+
35+
*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!

0 commit comments

Comments
 (0)