adafruit / Adafruit_CircuitPython_Requests

Requests-like interface for web interfacing
MIT License
51 stars 37 forks source link

Update YouTube API Example with Connection Manager #174

Closed DJDevon3 closed 6 months ago

DJDevon3 commented 6 months ago

Private API. Youtube/Google developer API Key required (created from developer dashboard). Youtube/Google developer dashboard url in code comments. Pulls your own basic channel data including total videos, views, subscribers, All the basic info needed to get started.

Matching result is for matching username search. As long as you provide the API key it should only return 1 result associated with that username and key.

Added

Serial output example:

Connecting to WiFi...
✅ Wifi!
 | Attempting to GET YouTube JSON...
 | ✅ YouTube JSON!
 |  | Matching Results: 1
 |  | Request Kind: youtube#channel
 |  | Channel ID: UCHpvNfMNs7qdsUjOad2_FWg
 |  | Videos: 273
 |  | Views: 7182245
 |  | Subscribers: 11800
 |  | Response Kind: youtube#channelListResponse
✂️ Disconnected from YouTube API

Finished!
Board Uptime: 1 hours
Next Update: 15 minutes
===============================