This is a full python implementation of the Needish API (http://api.needish.com).
Requires:
- Python >= 2.4
- simplejson
Usage example:
>>> from pyneedish import Users, Helps, Needs
>>> u = Users('d29c773fa210xxxxxxxxxxxxxxxxxxxx')
>>> user = u.authenticate('Reflejo@gmail.com', 'xxxxx')
>>> user
User <u'Mart\xedn Conte Mac Donell'>
>>> user.nickname
u'Reflejo'
>>> friends = u.friends(user.id)
>>> u.profile(user.id)
User <u'Mart\xedn Conte Mac Donell'>
>>> n = Needs('d29c773fa210xxxxxxxxxxxxxxxxxxxx')
>>> n.authenticate('Reflejo@gmail.com', 'xxxxx')
>>> need = n.add('Testing api', 'Testing api in sandbox')
>>> needs = n.all()
>>> need = needs.next()
>>> need.subject
u'La respuesta a la Vida, el Universo y a Todo ?'
>>> need.text
u'Cual es la respuesta a la Vida, el Universo y a Todo ?'
>>> need.user
User <u'Nelson Fernandez'>
>>> need.user.nickname
u'kascote'
>>> needs = n.friends()
>>> needs = n.follow()
>>> helps = n.helps('12303')
>>> needs = n.helped()
>>> needs = n.hot()
>>> needs.next()
Need <u'ESTUDIO DE SONDAJE'>, User <u'mar\xeda contreras'>
>>> needs = n.terms('hola')
>>> needs.next()
Need <u'Aumentar portafolio artistico'>, User <u'Marjorie Valencia'>
>>> needs = n.tag('php')
>>> needs.next()
Need <u'Apoyar la cadidatura de @Prisca81 a Miss Tuittera'>, \
User <u'Leonor Espinoza'>
>>> needs = n.tracker()
>>> needs = n.user('4143')
>>> needs.next()
Need <u'AYUDANTIAS'>, User <u'Alejandra Olgui\xadn'>
>>> n.view('12303')
Need <u'La respuesta a la Vida, el Universo y a Todo ?'>, \
User <u'Nelson Fernandez'>
>>> h = Helps('d29c773fa210xxxxxxxxxxxxxxxxxxxx')
>>> h.authenticate('Reflejo@gmail.com', 'xxxxx')
>>> help = h.add('13251', 'testing')