OBJECTIVES TO demonstrate the ability to work with protocols

OBJECTIVES TO demonstrate the ability to work with protocols that sit on top of HTTP by choosing such a protocol (after considering its pros and cons) and implementing code that uses it. DIRECTIONS For your chosen Web API, implement some code that uses it. Ensure that your code works. Submit your code as per the submission instructions.

Solution

from pyflix2 import *

netflix=netflixAPIV2(\'appname\',\'key\',\'shared_secret\')

subject=netflix.title_autocomplete(\'terminator\',filter=\'instant\')

for title in subject[\'autocomplete\'][\'title\'];

print title

user=netflix.get_user(\'user_id\',\'access_token\',\'access_token_secret\')

reco=user.get_recommandations();

for subject in reco[\'recommandations\'];

print subject[\'title\'][\'regular\']

note:

appname, key and shared_secret needs to be obtained from: http://developer.netflix.com/apps/mykeys.
The user_id, access_token, access_token_secret needs to be obtained programmatically using get_request_token and get_access_token.

 OBJECTIVES TO demonstrate the ability to work with protocols that sit on top of HTTP by choosing such a protocol (after considering its pros and cons) and impl

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site