Running the python /search example returns error

12 views
Skip to first unread message

Ju Xuv

unread,
Aug 26, 2012, 10:29:53 AM8/26/12
to telepo...@googlegroups.com
Hello

Running the python example for /search on this page http://www.teleportd.com/api returns
{u'ok': False, u'error': u'Unexpected token L'}

It's because python prints the 'period' range (which is made of long numbers) with an L at the end of each number..

This is where the confusion comes from I guess.


Stanislas Polu

unread,
Aug 27, 2012, 3:31:49 AM8/27/12
to telepo...@googlegroups.com
Yes the period *MUST* be made of integers. We're going to look into that.
If you have a fix do not hesitate to make a pull-request.

Best,

-stan

--
Stanislas Polu 
(New) Mo: +33 6 33 37 09 41 | Tw: @spolu | http://teleportd.com/api | Realtime Photo Search API

Stanislas Polu

unread,
Aug 31, 2012, 8:32:09 AM8/31/12
to telepo...@googlegroups.com
This works:

teleportd = Teleportd('UserKeyHere')
search = teleportd.search({'str': 'cyprus', 'loc': [35, 33], 'period': [1345342005000, 1346342005000], 'size': 20})

Best,

-stan

--
Stanislas Polu 
(New) Mo: +33 6 33 37 09 41 | Tw: @spolu | http://teleportd.com/api | Realtime Photo Search API



Reply all
Reply to author
Forward
0 new messages