This article is a mirror article of machine translation, please click here to jump to the original article.

View: 7887|Reply: 0

QQ space information API interface

[Copy link]
Posted on 2/20/2015 11:56:30 AM | | |

Some friends may have already caught these interfaces in the space, if you can't, you must grab the packet by yourself, IE9 version before can use httpwatch, IE9 comes with packet capture software (shortcut key F12)
This forum has released the landing space source code, which contains g_tk calculations, not much about login.
Log in to a QQ in VB first, calculate the g_tk, and then request the following URL in a GET way, it is best to use the inet1.openurl() method to open, pay attention to the return information, I listed 5 first.
1. Obtain spatial information interface
http://base.s6.qzone.qq.com/cgi-bin/user/cgi_userinfo_get_all?uin=【对方QQ】&vuin=【登陆的QQ】&rd=0.3724780201512549&g_tk=【g_tk值】
Return Format:
_Callback(
{"uin":958796636,"nickname":"*starlight*","spacename":"starlight's space",
"desc":"I wish you happiness and happiness every day! ----------20110101","signature":"javascrip remove t:n=String.fromCharCode(73,32,76,111,118,101,32,89,111,117); alert(n)","avatar":"http://qqspace-av.qq.com/958796636/10/00/","sex_type":0,"sex":1,"animalsign_type":0,"constellation_type":0,"constellation":1,"age_type":0,"age":20 ","islunar":0,"birthday_type":0,"birthyear":1991,"birthday":"0-01","bloodtype":5,"address_type":0,"country":"China","province":"Jilin","city":"Changchun","home_type":0,"hco":"China", HP":"Jilin","HC":"Changchun","marriage":1,"career":"Students","Company":"Starlight Company","CCO":"China","cp":"Jilin","cc":"Changchun","CB":"","mailname":"","mailcellphone":"","mailaddr":""});
Get a personal information card:
http://r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=【对方QQ】&remark=0&g_tk=【g_tk值】
Return Format:
_Callback({"uin":958796636,"pycertified":0,"qzone":1,"nickname":"*starlight*","gender":1"astro":1,"from":"Changchun","offsetBirth":330,"isFriend":1,"avatarUrl":" http://qlogo1.store.qq.com/qzone/958796636/958796636/100","specialrelation":3,"blog":{"title":"The most complete movie collection, you will follow this list to watch movies in the future!","content":"I don't know which NB person summarized, but I will follow this list to watch movies in the future, saving time, effort and gain. \n[1. Let these movies heal you]:\n1. Lack of motivation to learn: "Happiness Terminal", "Wind and Rain Harvard Road"\n2, right...", "url":http://958796636.qzone.qq.com/blog/1319786908}});

2. Get all your friends' information, including QQ, nicknames, notes, etc. of all your friends
http://r.cnc.qzone.qq.com/cgi-bin/tfriend/friend_mngfrd_get.cgi?uin=【登陆的QQ】&rd=0.9840207901969242&g_tk=【g_tk值】
Return format (one of the friend information):
{"uin":552127426, "groupid":4, "name":"♂ Xiaoxiao Gongzizu", "is_special":"0", "is_xy":"1", "xyname":"Ren Jia", "xyurl":" http://profile.pengyou.com/index.php?mod=profile&u=c265e4bd629300c524a6b5c7fc1bb8d055d0b9f4aca35394", "img":"http://qlogo3.store.qq.com/qzone/552127426/552127426/50", " imgbig":"http://qlogo3.store.qq.com/qzone/552127426/552127426/100", "yellow":-1, "realname":"Renjia", "online":0
After research, useful fields are proposed:
QQ:  "uin":552127426
Grouping: "groupid": 4
Screen name: "name":"♂ Xiao Xiao Gongzi zu"
Special Concern: "is_special": "0"
Whether it's an alumni "is_xy": "1"
Alumni Name "xyname":"Ren Jia"
Alumni Homepage:"xyurl":"http://profile.pengyou.com/index.php?mod=profile&u=c265e4bd629300c524a6b5c7fc1bb8d055d0b9f4aca35394",
Yellow diamond grade "yellow": -1
Real name is remarks: "realname": "Ren Jia"
Online or not: "online": 0

3. Leave traces of recent visitors to the other party's space, and return the popularity information of the other party's space:
http://g.cnc.qzone.qq.com/fcg-bin/cgi_emotion_list.fcg?uin=【对方QQ】&loginUin=【登陆的QQ】&s=250195&num=3&g_tk=【g_tk值】
Return Format:
visitCountCallBack({"retcode":1,"visitcount":167,"dayvisit":1,"spacemark":0,"markchange":0,"sun":167,"love":203,"rain":118,"nutri":0,"level":3,"gardener":1,"festival" :0,"firstlogin":1},{},{"feedscount":0,"medalnum":0});
Note: Refresh the historical visitcount and dayvisit to increase, but they didn't! Remember
4. See who has seen me
http://g.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=【对方QQ】&mask=7&clear=1&sd=872534&g_tk=【g_tk值】
Return format (one of the most recent visitors):
_Callback( {"Ishost":1, "items":[{"uin":169015*****, "name":"Next, listen to Beethoven's musicゞ", "online":1, "yellow":-1, "supervip":0, "src":0, "mod":0, "time":1342763569, "flag":0,
5. Get QQ avatar:
http://face4.qun.qq.com/cgi/svr/face/getface?type=1&uin=【对方QQ】
There is also a method test, you can use IE to open the page of your space personal center, then modify the relevant parameters of the URL, paste it at the address and type enter to see the return information (g_tk you can catch the package).




Previous:Why do many people think that computer majors can fix computers?
Next:How to fix the Includes\cls_template.php on line 418 error in ecshop
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com