有人能给我提供一些集成FriendFeedAPI的信息吗

有人能给我提供一些集成FriendFeedAPI的信息吗,friendfeed,Friendfeed,通过PHP集成FriendFeed API,我如何实现这一点。我正在开发一个网站,希望在其中集成FriendFeed..查看此示例代码 include("friendfeed.php"); include("JSON.php"); //Connect $friendfeed = new FriendFeed("yourusername", "yourpassword"); //Sample code to post data via the API $entry = $friendfeed-

通过PHP集成FriendFeed API,我如何实现这一点。我正在开发一个网站,希望在其中集成FriendFeed..

查看此示例代码

include("friendfeed.php");
include("JSON.php");

//Connect
$friendfeed = new FriendFeed("yourusername", "yourpassword");

//Sample code to post data via the API
$entry = $friendfeed->publish_message("Testing the FriendFeed API");

//Sample PHP code to get data for a specific users feed via the FriendFeed API
//The below gets the first 30 entries in that users feed

$feed = $friendfeed->fetch_user_feed("some_random_user_name", 0, 0, 30);
foreach ($feed->entries as $entry) {
 //get the image of the service, and its name (eg twitter, googlereader...)
 $output .= '<img src="' . $entry->service->iconUrl . '" alt="'. 
 $entry->service->name . '" />';

 //get the title of the entry and link to it
 $output .= $entry->service->name.'<a href="'.$entry->link.'">'.
 $entry->title.'</a>';

 //get the date of the entry
 $output .= date('Y m d', $entry->published);

}

 echo $output; //prints the entry title, icon and link to the entry
include(“friendfeed.php”);
包括(“JSON.php”);
//连接
$friendfeed=新的friendfeed(“您的用户名”、“您的密码”);
//通过API发布数据的示例代码
$entry=$friendfeed->publish_消息(“测试friendfeedapi”);
//示例PHP代码通过FriendFeedAPI获取特定用户提要的数据
//下面是该用户提要中的前30个条目
$feed=$friendfeed->fetch\u user\u feed(“一些随机的\u用户名”,0,0,30);
foreach($feed->entries as$entry){
//获取服务的图像及其名称(如twitter、googlereader…)
$output.='service->iconUrl.'alt=“”。
$entry->service->name.“/>”;
//获取条目的标题并链接到它
$output.=$entry->service->name.';
//获取条目的日期
$output.=日期('Y m d',$entry->published);
}
echo$output;//打印条目标题、图标和指向该条目的链接
是进一步参考的来源