开发者

problem with post in API twitter using PHP library

Im trying to use the following PHP to add a favorite to my account:

$favorite = $connection->post('favorites/create/'.$id);

where $id is the status id but fa开发者_运维问答vorite don't return nothing also I'm trying with statuses/retweet/ but is the same


Also when you are debugging, use print_r($favorite); to help you. Saved me with my problem today actually :-) But Andre is correct, remove the fullstop.


Replace the period with a comma, right before $id:

$favorite = $connection->get('favorites/create',$id);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜