Skip to content

Commit 3050684

Browse files
authored
Merge pull request #1 from joeybab3/patch-1
Added/changed some comments for clarity
2 parents 4f48c6e + 18915a4 commit 3050684

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/YoutubeApi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ String YoutubeApi::sendGetToYoutube(String command) {
3636
bool currentLineIsBlank = true;
3737
long now;
3838
bool avail;
39-
// Connect with api.telegram.org
39+
// Connect with youtube api over ssl
4040
if (client->connect(HOST, SSL_PORT)) {
4141
// Serial.println(".... connected to server");
4242
String a="";
@@ -89,8 +89,8 @@ String YoutubeApi::sendGetToYoutube(String command) {
8989
}
9090

9191
bool YoutubeApi::getChannelStatistics(String channelId){
92-
String command="https://www.googleapis.com/youtube/v3/channels?part=statistics&id="+channelId;
93-
String response = sendGetToYoutube(command); //recieve reply from telegram.org
92+
String command="https://www.googleapis.com/youtube/v3/channels?part=statistics&id="+channelId; //If you can't find it(for example if you have a custom url) look here: https://www.youtube.com/account_advanced
93+
String response = sendGetToYoutube(command); //recieve reply from youtube
9494
DynamicJsonBuffer jsonBuffer;
9595
JsonObject& root = jsonBuffer.parseObject(response);
9696
if(root.success()) {

0 commit comments

Comments
 (0)