|
APIAuthentication
mixin authenticationmixin provides a standard authentication based on OAuth or Basic Authentication. How to use Basic AuthenticationFrom a shell by using curl: $ curl -u email_address:password -d "input=test now" "http://www.mixin.com/events/json/" From a python program: import urllib3
import urllib
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, 'www.mixin.com', email_address, password)
authhandler = urllib2.HTTPBasicAuthHandler(passman)
opener = urllib2.build_opener(authhandler)
urllib2.install_opener(opener)
pagehandle = urllib2.urlopen('http://www.mixin.com/events/json/', urllib.urlencode({'input' : 'test basic auth now'}))How to get an OAuth authentication tokenYou need a mixin account and the you'll be able to register a new Consumer (as OAuth define it) your profile page. If you plan to create a new service based on mixin data, you can get user's information and interact with their account with a minimum of constraints for the user, he has to agree when you redirect him to mixin with your Request Token. See OAuth specifications for more. mixin's OAuth URLsEntry points, urls and limitations:
|
Sign in to add a comment