获取/statuses/list,出现HTTP Error 500: Internal Server Error

42 views
Skip to first unread message

bean

unread,
Jan 29, 2013, 11:44:57 PM1/29/13
to jiepa...@googlegroups.com
我想通过/statuses/list获取开放的签到信息,但总是报HTTP Error 500: Internal Server Error。
有人知道是怎么回事吗?
谢谢

Wander Wang

unread,
Jan 30, 2013, 12:59:29 AM1/30/13
to jiepa...@googlegroups.com
请把完整的调用方法发一下,谢谢。


2013/1/30 bean <cs.tan...@gmail.com>
我想通过/statuses/list获取开放的签到信息,但总是报HTTP Error 500: Internal Server Error。
有人知道是怎么回事吗?
谢谢

--
You received this message because you are subscribed to the Google Groups "街旁API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jiepangapi+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Wander | 王鑫 
Product Manager
你的街旁,我的城市
Mobile: +86 18611789027
QQ:53540293

Wander Wang

unread,
Jan 30, 2013, 1:00:27 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
loop zakk


2013/1/30 Wander Wang <wan...@jiepang.com>

bean

unread,
Jan 30, 2013, 1:06:58 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
statuses = jiepang.api('/statuses/list', {'count': 20})
print 'statuese list:'
for statuse in statuses['items']:
print 'user_id: %s   statuse: %s' % (statuse['user_id'], statuse['body'])



在 2013年1月30日星期三UTC+8下午2时00分27秒,Wander Wang写道:

Wander Wang

unread,
Jan 30, 2013, 1:11:39 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
我们还需要知道调用的source或者token


2013/1/30 bean <cs.tan...@gmail.com>

bean

unread,
Jan 30, 2013, 1:29:41 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
谢谢。已经解决了。但是返回的statueses为空。

还有个问题,source是不是默认的参数,如果我显示的传入参数的话,提示参数的个数超过了限制,而且参数的个数比我传的参数多一个。



在 2013年1月30日星期三UTC+8下午2时11分39秒,Wander Wang写道:

Wander Wang

unread,
Jan 30, 2013, 1:37:48 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
source和token必须传一个,服务器一定要知道请求来源才会返回数据。


2013/1/30 bean <cs.tan...@gmail.com>

bean

unread,
Jan 30, 2013, 1:43:44 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
token我是手动填的。
如果再加source, statuses = jiepang.api('/statuses/list', {'type': 'checkin'}, {'source': ***})出现这个结果:
Traceback (most recent call last):
  File "statuseslist.py", line 26, in <module>
    statuses = jiepang.api('/statuses/list', {'type': 'checkin'}, {'source': 100
749})
TypeError: api() takes at most 3 arguments (4 given)



在 2013年1月30日星期三UTC+8下午2时37分48秒,Wander Wang写道:

Wander Wang

unread,
Jan 30, 2013, 4:08:44 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
是一个dict,不是好几个。


statuses = jiepang.api('/statuses/list', {'type': 'checkin'}, {'source': ***})出现这个结果:
Traceback (most recent call last):
  File "statuseslist.py", line 26, in <module>
    statuses = jiepang.api('/statuses/list', {'type': 'checkin'}, {'source': 100
749})
TypeError: api() takes at most 3 arguments (4 given)



2013/1/30 bean <cs.tan...@gmail.com>

Wander Wang

unread,
Jan 30, 2013, 5:36:43 AM1/30/13
to jiepa...@googlegroups.com, Zakk Zhu
statuses = jiepang.api('/statuses/list', {'type': 'checkin', 'source': 100749})
这样就可以了


2013/1/30 Wander Wang <wan...@jiepang.com>
Reply all
Reply to author
Forward
0 new messages