dqwn64004 2010-09-24 13:14
浏览 63
已采纳

Twitter API,PHP中的API链接

I am looking for a simple script that I can use to send some text to Twitter, and Linked in.

The objective is to be able to have a simple sample PHP script that looks something like this:

<html>
  <head>
    <title>Twitter and Linked In API</title>
    <script type="text/javascript" src="jquery.js">
  </head>
  <body>
  <?php $dummy_txt = 'Hello world! from me'; ?>
  <div id="tweet">Tweet</div>
  <div id="sendto_li">Send to Linked In</div>
  $(body).ready(function(){
     $('#tweet').click(function(){
        //post data to server
     });
     $('#sendto_li').click(function(){
        //post data to server
     });
  });
  </body>
</html>

//Server side
<?php
  function tweet(){
  }

  function sendto_linkedin(){
  }
?>

Cabn anyone help with writing the server side functions that will encapsulate the Twitter and LinkedIn API?

  • 写回答

4条回答 默认 最新

  • dongluo3331 2010-09-24 13:22
    关注

    For twitter have a look here for PHP script. php-twitter

    I don't think LinkedIn has a public API but it has an API. You would need to contact them to get that information.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里