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条)

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料