2015-07-19 65 views

回答

0

根据Instagram API文档(https://instagram.com/developer/endpoints/likes/#post_likes),成功响应的JSON响应应如下所示。

{ 
    "meta": { 
     "code": 200 
    }, 
    "data": null 
} 

它看起来并不像是有任何数据返回。但是,您可以像这样使用内置的AJAX Success回调。

$.ajax({ 
    type: 'POST', 
    url: 'your url here', 
    data: 'your data here in the form of an object', 
    //The success function will operate if the server compeletes is task, 
    //or in this case, if the post is liked 
    success: function(){ 

    } 
}); 
+0

有什么建议吗? – Ali