Skip to content

Commit fea46c5

Browse files
committed
Launch more app/user streaming data
1 parent 5cc4bbd commit fea46c5

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

Diff for: content/reference/resources/app-stream/index.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ A customized view of the global events happening on App.net that is streamed to
4242
<tr>
4343
<td><code>object_types</code></td>
4444
<td>list</td>
45-
<td>A list of strings that specify the kinds of objects this stream is interested in. Accepted strings are <code>post</code>, <code>star</code>, <code>user_follow</code>, <code>mute</code>, <code>block</code>, <code>stream_marker</code>, <code>message</code>, <code>channel</code>, <code>channel_subscription</code>, <code>token</code>, <code>file</code>.</td>
45+
<td>A list of strings that specify the kinds of objects this stream is interested in. Accepted strings are <code>post</code>, <code>star</code>, <code>user_follow</code>, <code>mute</code>, <code>block</code>, <code>stream_marker</code>, <code>message</code>, <code>channel</code>, <code>channel_subscription</code>, <code>token</code>, <code>file</code>, <code>user</code>.</td>
4646
</tr>
4747
<tr>
4848
<td><code>type</code></td>
@@ -122,7 +122,7 @@ The `meta` object may contain the following standard keys:
122122
<tr>
123123
<td><code>type</code></td>
124124
<td>string</td>
125-
<td>One of <code>post</code>, <code>star</code>, <code>user_follow</code>, <code>mute</code>, <code>block</code>, <code>stream_marker</code>, <code>message</code>, <code>channel</code>, <code>channel_subscription</code>, <code>token</code>, <code>file</code>.</td>
125+
<td>One of <code>post</code>, <code>star</code>, <code>user_follow</code>, <code>mute</code>, <code>block</code>, <code>stream_marker</code>, <code>message</code>, <code>channel</code>, <code>channel_subscription</code>, <code>token</code>, <code>file</code>, <code>user</code>.</td>
126126
</tr>
127127
</tbody>
128128
</table>
@@ -230,6 +230,7 @@ An App Stream can listen for the following object types:
230230
* [channel_subscription](#channel_subscription): Sent when a user subscribes or unsubscribes to a channel
231231
* [token](#token): Sent when a user authorizes, changes scopes for, or deauthorizes an app
232232
* [file](#file): Sent when a user creates a file, updates a file, or deletes a file
233+
* [user](#user): Sent when a user updates their profile
233234

234235
### post
235236

@@ -618,4 +619,19 @@ A file is deleted.
618619
},
619620
}) %>
620621

622+
### user
623+
624+
*You only see objects in this category for users who have authorized your app with.*
625+
626+
A user updates their profile.
627+
628+
<%= json_output({
629+
"meta" => {
630+
"timestamp" => 1355349183060,
631+
"type" => "user",
632+
"id" => "8"
633+
},
634+
"data" => "...user object..."
635+
}) %>
636+
621637
<%= render 'partials/endpoints-tab', :for => "app-stream" %>

Diff for: content/reference/resources/user-stream/index.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ Ordering is not guaranteed for events delivered on streams, but we aim to have t
6666
* /stream/0/users/me/followers
6767
* /stream/0/users/me/posts
6868
* /stream/0/users/me/mentions
69+
* /stream/0/posts/:post_id/replies
6970
* /stream/0/posts/stream
7071
* /stream/0/posts/stream/unified
7172
* /stream/0/channels (includes new messages for channels you're subscribed to)
7273
* /stream/0/channels/:channel_id/subscribers
7374
* /stream/0/channels/:channel_id/messages
7475
* /stream/0/users/me/files
76+
* /stream/0/token (includes updates for both the token and the user objects of the current user)
7577

7678
## Limits
7779

@@ -140,7 +142,8 @@ In general, the User Streams API tries to mimc the format and conventions of the
140142
"is_deleted" => true,
141143
"deleted_id" => "1212",
142144
"subscription_ids" => ["bf42ca05-e67e-4e26-8bd0-8b042dd5b04c"],
143-
"connection_id" => "Ne1Rpr4DgmilaYUCe51aoRQpCDei14Aw"
145+
"connection_id" => "Ne1Rpr4DgmilaYUCe51aoRQpCDei14Aw",
146+
"type" => "post",
144147
}
145148
}) %>
146149

@@ -195,7 +198,8 @@ In general, the User Streams API tries to mimc the format and conventions of the
195198
"min_id" => "5675993",
196199
"max_id" => "5675993",
197200
"connection_id" => "<YOUR CONNECTION ID FROM STEP 2>",
198-
"more" => false
201+
"more" => false,
202+
"type" => "post",
199203
},
200204
"data" => [
201205
"... posts ..."

0 commit comments

Comments
 (0)