Skip to content

Commit e366023

Browse files
committed
Merge pull request appdotnet#29 from kosso/master
Updated Global endpoint.
2 parents be59da4 + 066c62d commit e366023

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

resources/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ Guiding principles are:
7272
<td>GET</td>
7373
<td><a href="/appdotnet/api-spec/blob/master/resources/posts.md#retrieve-a-users-personalized-stream">Retrieve a User's personalized stream</a></td>
7474
</tr>
75+
<tr>
76+
<td>/stream/0/posts/stream/global</td>
77+
<td>GET</td>
78+
<td><a href="/appdotnet/api-spec/blob/master/resources/posts.md#retrieve-the-global-stream">Retrieve the Global stream</a></td>
79+
</tr>
7580
</tbody>
7681
</table>
7782

resources/posts.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,3 +531,59 @@ Return the 20 most recent <a href="/appdotnet/api-spec/blob/master/objects.md#po
531531
...
532532
]
533533
```
534+
535+
536+
## Retrieve the Global stream
537+
538+
Return the 20 most recent <a href="/appdotnet/api-spec/blob/master/objects.md#post">Post</a>s from the Global stream.
539+
540+
### URL
541+
> https://api.app.net/stream/0/posts/stream/global
542+
543+
### Parameters
544+
545+
*See [General Parameters](#general-parameters) for optional parameters you can use with this query.*
546+
547+
### Example
548+
549+
> GET https://api.app.net/stream/0/posts/stream/global
550+
```js
551+
[{
552+
"id": "1", // note this is a string
553+
"user": {
554+
...
555+
},
556+
"created_at": "2012-07-16T17:25:47Z",
557+
"text": "@berg FIRST post on this new site #newsocialnetwork",
558+
"source": {
559+
"name": "Rdio for iOS",
560+
"link": "http://rdio.com"
561+
},
562+
"reply_to": null,
563+
"annotations": {
564+
"wellknown:geo": {
565+
"type": "Point",
566+
"coordinates": [102.0, .5]
567+
},
568+
"rdio:song": ...
569+
},
570+
"entities": {
571+
"mentions": [{
572+
"name": "berg",
573+
"id": "2",
574+
"indices": [0, 4]
575+
}],
576+
"hashtags": [{
577+
"name": "newsocialnetwork",
578+
"indices": [34, 50]
579+
}],
580+
"links": [{
581+
"text": "this new site",
582+
"url": "https://join.app.net"
583+
"indices": [20, 32],
584+
}]
585+
}
586+
},
587+
...
588+
]
589+
```

0 commit comments

Comments
 (0)