Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leetcode-notes/981ac4b71ff72ef569ffa41db91dd6ce to your computer and use it in GitHub Desktop.
Save leetcode-notes/981ac4b71ff72ef569ffa41db91dd6ce to your computer and use it in GitHub Desktop.
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