Sina Weibo open Platform API

Source: Internet
Author: User

About Sina Weibo open platform There are many problems, the online documentation is not very clear, the authorization mechanism to get me stumped not clear how it has been reported no permission email to developers also did not respond

Accidentally trying to get to a method states returned the following code for success:

1. In the head reference

<meta property= "Wb:webmaster" content= "8998f19501c5a01c"/><script src= "Http://tjs.sjs.sinajs.cn/open/api /js/wb.js?appkey= your own Appkey "type=" Text/javascript "charset=" Utf-8 "></script><link type=" Text/css "rel = "stylesheet" href= "Http://tjs.sjs.sinajs.cn/t3/style/css/common/card.css"/>

In 2.Javascript

<script type= "Text/javascript" >$ (function () {Wb2.anywhere (function (W) {w.parsecmd ("/statuses/home_ timeline.json?user_id=2922998432 ", Function (Sresult, bstatus) {    if (bstatus = = True) {alert (sresult);    }},{},{    method: ' Get '});}) </script>

Here's user_id fill in your own userid if you do not know the words to the micro-blog to view, or to Baidu search how to check their own userid here no longer explain in detail

If successful, pop-up object type Sresult can be debugged to see and then get the content according to your own needs; the first parameter of Parsecmd is the interface, the details of the interface to the Sina Weibo open platform API there to see their needs of http:// Open.weibo.com/wiki/%e9%a6%96%e9%a1%b5

-----It seems that all Sina Weibo interfaces do not support post but the default submission is still the Post method: ' GET ' is necessary,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.