Created
November 22, 2011 10:47
-
-
Save webcracy/1385401 to your computer and use it in GitHub Desktop.
Manybots - Activity Streams examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"items": [ | |
{ | |
"id": "http://examplemanybotsserver.com/activities/170", | |
url: "http://examplemanybotsserver.com/activities/170", | |
"title": "<%= "<a href='http://examplemanybotsserver.com/users/1'>Alex Solleiro</a> joined <a href='http://examplemanybotsserver.com'>Manybots Server</a>."%>", | |
"summary": "Welcome to Manybots Server", | |
"published": "2010-11-09 17:22:41 UTC", | |
"tags": [ "manybots", "account"], | |
"actor": { | |
"id": "http://examplemanybotsserver.com/users/1", | |
"url": ""http://examplemanybotsserver.com/users/1", | |
"displayName": "Alex Solleiro" | |
}, | |
"object": { | |
"id": "http://examplemanybotsserver.com", | |
"url": "http://examplemanybotsserver.com", | |
"title": "Manybots Server", | |
"objectType": "service" | |
}, | |
"verb": "join", | |
"icon": { | |
"url": "http://examplemanybotsserver.com/icon.png", | |
"width": 32, | |
"width": 32, | |
}, | |
"generator" : { | |
"url" : "http://examplemanybotsserver.com", | |
"displayName" : "Sample Generator" | |
}, | |
"serviceProvider": { | |
"displayName": "Example Manybots Server", | |
"url": "http://examplemanybotsserver.com" | |
"image": { | |
"url": "http://examplemanybotsserver.com/favicon.png", | |
"width": 32, | |
"height": 32 | |
} | |
} | |
}, | |
{ | |
... | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* API VERSION, required*/ | |
"version": "1.0", | |
/* Activity object */ | |
"activity": { | |
/* Activity properties*/ | |
"published": "2010-07-21T13:28:00+00:00", | |
"url": "http://example.com/activities/1-example-slug", | |
"id": "http://example.com/activities/1", | |
"title": "<%= "<a href='http://twitter.com/als'>@als</a> favorited a Status on <a href='http://twitter.com/'>Twitter</a>." %>", | |
"summary": "<%= "<a href='http://twitter.com/umairh/status/18997088768'>umairh: The great contradiction at the heart of the global economy? Growth is about having more. But real prosperity is about needing less.</a>"%>", | |
"content": "<%= "<a href='http://twitter.com/umairh/status/18997088768'>umairh: The great contradiction at the heart of the global economy? Growth is about having more. But real prosperity is about needing less.</a>"%>", | |
/* Actor */ | |
"actor": { | |
"displayName": "Alex Solleiro", | |
"id": "http://twitter.com/als" | |
}, | |
/* Verb */ | |
"verb": "favorite", | |
/* Tags */ | |
"tags": ['tag 1','tag 2','tag 3'], | |
/* Object */ | |
"object": { | |
"id": "http://twitter.com/umairh/status/18997088768", | |
"url": "http://twitter.com/umairh/status/18997088768", | |
"objectType": "status", | |
"displayName": "umairh: The great contradiction at the heart of the global economy? Growth is about having more. But real prosperity is about needing less." | |
}, | |
/* Target - optional */ | |
"target": { | |
"id": "http://twitter.com/als/favorites", | |
"url": "http://twitter.com/als/favorites", | |
"objectType": "playlist" | |
"displayName": "Alex Solleiro's favorite Tweets" | |
}, | |
/* Icon and Generator */ | |
/* Icon: ideally a 32 x 32 png; other sizes won't look as intended */ | |
"icon": { | |
"url": "http://www.bestsite.com/icon.png", | |
"width": 32, | |
"height": 32 | |
}, | |
/* Your site's info as associated with the activities */ | |
"generator" : { | |
"displayName" : "Your site" | |
"url" : "http://www.yoursite.com", | |
"image": { | |
"url": "http://www.yoursite.com/icon.png", | |
"width": 32, | |
"height": 32 | |
} | |
}, | |
/* Service Provider */ | |
"provider": { | |
"displayName": "Twitter", | |
"url": "http://twitter.com", | |
"image": { | |
"url": "http://twitter.com/favicon.png", | |
width: 32, | |
height: 32 | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"avatar_url": "http://www.gravatar.com/avatar.php?gravatar_id=dc0ab3571c09b2fc06fa4e6bdbf0e262", | |
"email": "[email protected]", | |
"id": 1, | |
"name": "Bob Forshow", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment