-
-
Save leetcode-notes/981ac4b71ff72ef569ffa41db91dd6ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from apiclient.discovery import build | |
def build_service(filename): | |
with open(filename) as f: | |
key = f.readline() | |
YOUTUBE_API_SERVICE_NAME = "youtube" | |
YOUTUBE_API_VERSION = "v3" | |
return build(YOUTUBE_API_SERVICE_NAME, | |
YOUTUBE_API_VERSION, | |
developerKey=key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment