Permalink
Browse files

Merge branch 'master' of github.com:appdotnet/api-spec

  • Loading branch information...
2 parents 9469672 + e366023 commit fe9efdbeeb761f0a15d6beb25e03a3ecd8c4b17f @berg berg committed Aug 9, 2012
Showing with 61 additions and 0 deletions.
  1. +5 −0 resources/README.md
  2. +56 −0 resources/posts.md
View
5 resources/README.md
@@ -72,6 +72,11 @@ Guiding principles are:
<td>GET</td>
<td><a href="/appdotnet/api-spec/blob/master/resources/posts.md#retrieve-a-users-personalized-stream">Retrieve a User's personalized stream</a></td>
</tr>
+ <tr>
+ <td>/stream/0/posts/stream/global</td>
+ <td>GET</td>
+ <td><a href="/appdotnet/api-spec/blob/master/resources/posts.md#retrieve-the-global-stream">Retrieve the Global stream</a></td>
+ </tr>
</tbody>
</table>
View
56 resources/posts.md
@@ -533,3 +533,59 @@ Return the 20 most recent <a href="/appdotnet/api-spec/blob/master/objects.md#po
...
]
```
+
+
+## Retrieve the Global stream
+
+Return the 20 most recent <a href="/appdotnet/api-spec/blob/master/objects.md#post">Post</a>s from the Global stream.
+
+### URL
+> https://api.app.net/stream/0/posts/stream/global
+
+### Parameters
+
+*See [General Parameters](#general-parameters) for optional parameters you can use with this query.*
+
+### Example
+
+> GET https://api.app.net/stream/0/posts/stream/global
+```js
+[{
+ "id": "1", // note this is a string
+ "user": {
+ ...
+ },
+ "created_at": "2012-07-16T17:25:47Z",
+ "text": "@berg FIRST post on this new site #newsocialnetwork",
+ "source": {
+ "name": "Rdio for iOS",
+ "link": "http://rdio.com"
+ },
+ "reply_to": null,
+ "annotations": {
+ "wellknown:geo": {
+ "type": "Point",
+ "coordinates": [102.0, .5]
+ },
+ "rdio:song": ...
+ },
+ "entities": {
+ "mentions": [{
+ "name": "berg",
+ "id": "2",
+ "indices": [0, 4]
+ }],
+ "hashtags": [{
+ "name": "newsocialnetwork",
+ "indices": [34, 50]
+ }],
+ "links": [{
+ "text": "this new site",
+ "url": "https://join.app.net"
+ "indices": [20, 32],
+ }]
+ }
+},
+...
+]
+```

0 comments on commit fe9efdb

Please sign in to comment.