My favorites | Sign in
Project Logo
          
Search
for
Updated Sep 05, 2008 by jvisinand
APIAuthentication  

mixin authentication

mixin provides a standard authentication based on OAuth or Basic Authentication.

How to use Basic Authentication

From 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 token

You 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 URLs

Entry points, urls and limitations:


Sign in to add a comment
Hosted by Google Code