我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用PHP库在API twitter中发布的问题

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 favorite don't return nothing also I'm trying with statuses/retweet/ but is the same

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

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

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.

近期文章

  • OpenPGP中的换行符(使用带有drupal的PEAR)
  • 将推文存储到数据库的简单方法是什么?
  • Magento - 在类别中选择显示模式“静态块和产品”时显示/隐藏CMS块
  • 在PHP中调用SOAP调用中的可选参数
  • 如何使用solr php客户端使用多值字段进行有效的分面搜索?
  • PHP SoapClient和C#SOAP服务器响应中的编码问题
  • 使用Jquery多个值?
  • PHP会话变量 - 在Wit的结尾
  • too long
  • 使用Twitter oAuth安全登录 - 最佳实践
  • 提供的参数不是php codeigniter中的有效Image资源
  • rewritebase无法正常工作
  • 在php中预置文件的最佳方式
  • 通过Apache和PHP过滤Web文件夹
  • Zend Framework中的模型加载问题
  • Zend_OpenId和Google登录
  • php脚本表现得很奇怪,即使一个不存在也会显示记录
  • 点击返回键 activity 不发送结果
  • oo程序与业务规则的变化
  • 从MySql Recordset向多个收件人发送电子邮件

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华