X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/f2ed1449ece59c6247b8befc9ca6f423f7e4b004..61fe9257d6f436479b512d7e6ad905d9f9b8cd58:/src/apiclient/__init__.py?ds=sidebyside diff --git a/src/apiclient/__init__.py b/src/apiclient/__init__.py index e489807..07b8123 100644 --- a/src/apiclient/__init__.py +++ b/src/apiclient/__init__.py @@ -32,3 +32,8 @@ def api_call(user, path, method='POST', data=None, files=None): else: raise ApiError("WL API call error %s, path: %s" % (r.status_code, path)) + +def youtube_call(method, url, params=None, json=None, data=None, resumable_data=None): + from .models import YouTubeToken + yt = YouTubeToken.objects.first() + return yt.call(method, url, params=params, json=json, data=data, resumable_data=resumable_data)