Skip to content

kga245/echo-php-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

A php library for interacting with the Echo platform. This library includes Echo API methods, OAuth authetication, a web GUI, and convert RSS to ActivityStreams functions.

Requirements:
PHP
Echo API key

Make use of:
ActivityStreams PHP Library (optional) - http://github.com/jonnyjon/ActivityStreams-PHP-Library
SimplePie Library (optional) - http://simplepie.org/

Usage:

// Submit Data to Echo Platform
require ('/lib/EchoLib.inc');
$EchoLib = new EchoLib($consumer_key, $consumer_secret); // create object
$rsp = $EchoLib->method_submit($data); // submit ActivityStreams data to the Echo platform

// Convert RSS to ActivityStreams
require ('/lib/EchoLib.inc');

$data = file_get_contents('http://search.twitter.com/search.atom?q=star+trek'); // get rss/atom data
$streamy = new ActivityStreams(); // create object
$rsp = $streamy->rss_to_activity_streams($data); // convert data
header('Content-Type: application/xml; charset=utf-8'); // set the content type
echo $rsp; // convert to string and print to screen

About

echo php library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages