summaryrefslogtreecommitdiff
path: root/lib/pubsubhubbub/README.txt
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-01 09:36:29 +0400
committerAndrew Dolgov <[email protected]>2011-04-01 09:36:29 +0400
commitb0f379dfff8738defba307341887ee5938625f55 (patch)
treed010c9bd98d2b3f992036fa19fce6bd91d5a0c33 /lib/pubsubhubbub/README.txt
parent6f1c5d1760a8a6f753cf35098d45507ed18d0f71 (diff)
add experimental support for pubsubhubbub in published feed, bump config version (refs #251)
Diffstat (limited to 'lib/pubsubhubbub/README.txt')
-rw-r--r--lib/pubsubhubbub/README.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/pubsubhubbub/README.txt b/lib/pubsubhubbub/README.txt
new file mode 100644
index 000000000..3d27c4044
--- /dev/null
+++ b/lib/pubsubhubbub/README.txt
@@ -0,0 +1,21 @@
+This PHP library for PubSubHubbub was written by Josh Fraser (joshfraser.com) and is released under the Apache 2.0 License
+
+Usage:
+// specify which hub you want to use. in this case we'll use the demo hub on app engine.
+$hub_url = "http://pubsubhubbub.appspot.com/";
+
+// create a new pubsubhubbub publisher
+$p = new Publisher($hub_url);
+
+// specify the feed that has been updated
+$topic_url = "http://www.onlineaspect.com";
+
+// notify the hub that the specified topic_url (ATOM feed) has been updated
+// alternatively, publish_update() also accepts an array of topic urls
+if ($p->publish_update($topic_url)) {
+    echo "$topic_url was successfully published to $hub_url";
+} else {
+    echo "Ooops...";
+    print_r($p->last_response());
+}
+ \ No newline at end of file