Groups
Groups
Sign in
Groups
Groups
嘀咕app讨论组
Conversations
About
Send feedback
Help
如何http://api.digu.com/search_user.xml?q={q}中文名?
8 views
Skip to first unread message
Allen
unread,
Apr 23, 2009, 10:40:26 AM
4/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 嘀咕app讨论组
RT 我试过直接从浏览器输入,也试过curl,可是得到的都是<?xml version="1.0" encoding="UTF-8"?
><users/>
是不支持中文吗?
chym207chym
unread,
Apr 24, 2009, 2:34:18 AM
4/24/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to diguapp
在地址栏里输入路径是要对url encode之后的路径才可以的。你弄中文就没有encode当然不行了。
你用的是什么语言,就到网上搜一下,将路径encode一下。就支持中文了
2009-04-24
chym207chym
发件人:
Allen
发送时间:
2009-04-23 22:40:27
收件人:
嘀咕app讨论组
抄送:
主题:
如何
http://api.digu.com/search_user.xml?q={q}
中文名?
Allen
unread,
Apr 24, 2009, 3:13:22 AM
4/24/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
用的是php
$host = '
http://apidev.digu.com/search_user.xml?q=
' . urlencode ($s);
返回结果仍然是
<?xml version="1.0" encoding="UTF-8"?>
<
users
/
>1
2009/4/24 chym207chym
<
chym2...@gmail.com
>
--
My Blog Is
Http://www.movoin.com/
我在读什么@GoogleReader [2009-04-20]
陈延民
unread,
Apr 25, 2009, 6:59:37 AM
4/25/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
实在不好意思,我们尽快解决这个问题。我也试了试,发现确实不行。
2009/4/24 Allen
<
mov...@gmail.com
>
Allen
unread,
Apr 25, 2009, 8:00:56 AM
4/25/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
顺便再问一下,update里回复ID为什么叫twitter_id?
2009/4/25 陈延民
<
chym2...@gmail.com
>
谈谈我的家乡——萍乡
chym207chym
unread,
Apr 27, 2009, 9:02:12 PM
4/27/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to diguapp
回复的id叫twitter_id是内部使用的一个变量名字,为了统一,具体就不说了。
encode成UTF-8格式才可以,地址栏路径默认的是encode成了gb2312了,所以,不能在地址栏里面写,要在程序里面用encode转换成UTF-8的,在地址栏里的是gb2312的。
比如java中的
http://apidev.digu.com
arch_statuses.xml?q=java.net.URLEncoder.encode("大","UTF-8")
然后发送http get请求就可以了。但是不能够放在地址栏里回车的,因为地址栏里是gb2312转码
谢谢支持,有什么问题再告诉我
2009-04-28
chym207chym
发件人:
Allen
发送时间:
2009-04-25 20:01:01
收件人:
diguapp
抄送:
主题:
Re: 如何
http://api.digu.com/search_user.xml?q={q}
中文名?
顺便再问一下,update里回复ID为什么叫twitter_id?
2009/4/25 陈延民
<
chym2...@gmail.com
>
谈谈我的家乡----萍乡
chym207chym
unread,
Apr 27, 2009, 9:39:18 PM
4/27/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to diguapp
抱歉,真的很抱歉,search_statuses是可以的,search_user有一个bug,本来取出来数据了,中途逻辑错了一个。谢谢,要不这个隐含的还很难发现呢,呵呵,现在可以了
String s3 = new String("愚蠢的智者");
String s4 = URLEncoder.encode(s3,"utf-8");
get("
http://apidev.digu.com/search_user.xml?q=
"+s4);
2009-04-28
chym207chym
发件人:
Allen
发送时间:
2009-04-25 20:01:01
收件人:
diguapp
抄送:
主题:
Re: 如何
http://api.digu.com/search_user.xml?q={q}
中文名?
顺便再问一下,update里回复ID为什么叫twitter_id?
2009/4/25 陈延民
<
chym2...@gmail.com
>
谈谈我的家乡----萍乡
赖正
unread,
Apr 29, 2009, 11:36:38 PM
4/29/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
应该是digu_id吧?
Allen
unread,
Apr 29, 2009, 11:39:26 PM
4/29/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
我也是这么想的,所以才会有疑问~~~
2009/4/30 赖正
<
boll...@gmail.com
>
应该是digu_id吧?
bingu
unread,
Apr 30, 2009, 12:08:22 AM
4/30/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
很显然是参考了twitter的api啦。
2009/4/30 Allen
<
mov...@gmail.com
>
--
我的blog:
http://bingu.net
玩WordPress:
http://wanwp.com
Allen
unread,
Apr 30, 2009, 12:37:19 AM
4/30/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dig...@googlegroups.com
其实API上还是有一些不同的
至少不会和饭否一样离谱,大部分只需要把twitter换成fanfou就可以使用了,呵呵
2009/4/30 bingu
<
zhon...@gmail.com
>
chym207chym
unread,
May 3, 2009, 9:28:10 PM
5/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to diguapp
基本上是学习twitter API的,谁叫人家先出来呢,而且是都有研究的,呵呵呵,但是也有些不适合我们的,所以有些改掉了,这个漏掉了。这个会尽快慎重修改的
2009-05-04
chym207chym
发件人:
Allen
发送时间:
2009-04-30 12:37:24
收件人:
diguapp
抄送:
主题:
Re: Re: 如何
http://api.digu.com/search_user.xml?q={q}
中文名?
Reply all
Reply to author
Forward
0 new messages