yt-unlist-saver/youtube_api.py

11 lines
255 B
Python

#!/usr/bin/env python3
# Python wrapper for REST API for some of the YouTube API.
from requests import get, post
import json
class YouTubeAPI(object):
def __init__(self, key):
self.url = 'https://www.googleapis.com/youtube/v3/'
self.key = key