人人状态数据格式更改,转发状态几乎没信息量

7 views
Skip to first unread message

Pili Hu

unread,
Jun 24, 2013, 8:24:28 AM6/24/13
to sns...@googlegroups.com

最近才发现人人状态数据格式有变,不知道什么时候改的。加了相应的test case


蛋疼的是现在装发的状态里面没有原po的内容,也没有本次转发的一个"source_id"。除了装发链里面的几句话,没其他信息了。如下:

+  {
+    "update_time": "2013-06-22 02:58:30", 
+    "name": "user1", 
+    "comments": {
+      "count": 4, 
+      "comment": [
+        {
+          "name": "user2", 
+          "text": "text1", 
+          "comment_id": 1111, 
+          "time": "2013-06-22 03:08", 
+          "headurl": "http://hdn.xnimg.cn/photos/hdn221/201/1850/tiny_dymK_ebf300.jpg", 
+          "uid": 2222
+        }, 
+        {
+          "name": "user3", 
+          "text": "text2", 
+          "comment_id": 3333, 
+          "time": "2013-06-22 03:32", 
+          "headurl": "http://hdn.xnimg.cn/photos/hdn121/201/0200/tiny_0PWo_ec0300.jpg", 
+          "uid": 4444
+        }
+      ]
+    }, 
+    "post_id": 22857088936, 
+    "feed_type": 10, 
+    "actor_type": "user", 
+    "likes": {
+      "friend_count": 0, 
+      "total_count": 0, 
+      "user_like": 0
+    }, 
+    "headurl": "http://hdn.xnimg.cn/photos/hdn121/201/0200/tiny_0PWo_ec03000.jpg", 
+    "actor_id": 55555
+  },

xuanqi...@gmail.com

unread,
Jun 25, 2013, 8:34:44 PM6/25/13
to sns...@googlegroups.com
微博的模拟认证也失效了...这两天在重新修改个更通用的。
--
You received this message because you are subscribed to the Google Groups "snsapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snsapi+un...@googlegroups.com.
To post to this group, send email to sns...@googlegroups.com.
Visit this group at http://groups.google.com/group/snsapi.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pili Hu

unread,
Jun 26, 2013, 5:21:26 AM6/26/13
to sns...@googlegroups.com
人人的这个跟bug似的。他不是说把某些field换个名字,这样改了还有。新的数据结构中残缺不全,必要的id的都没有,完全没法继续利用。有些转发链的信息,他count里面写的比实际返回的数组里面的要多。


xuanqi...@gmail.com

unread,
Jun 26, 2013, 5:22:45 AM6/26/13
to sns...@googlegroups.com
要不要发个email给人人官方?

Pili Hu

unread,
Jun 26, 2013, 10:39:58 PM6/26/13
to sns...@googlegroups.com
有道理。用这个?




2013/6/26 <xuanqi...@gmail.com>

Pili Hu

unread,
Jun 27, 2013, 11:55:22 PM6/27/13
to sns...@googlegroups.com
貌似已经恢复了,看来是他们的bug。


2013/6/27 Pili Hu <hupili...@gmail.com>
Reply all
Reply to author
Forward
0 new messages