Пример #1
0
 def http(self, access_token=None):
     h = NetflixHttp()
     h.consumer = OAuthConsumer(settings.NETFLIX_KEY, settings.NETFLIX_SECRET)
     if access_token is not None:
         h.add_credentials(h.consumer, access_token, domain="api.netflix.com")
     return h
Пример #2
0
 def http(cls, access_token=None):
     h = NetflixHttp()
     h.consumer = OAuthConsumer(*settings.NETFLIX_KEY)
     h.add_credentials(h.consumer, access_token, domain="api.netflix.com")
     return h