Constructor
new InstagramStream(optionsopt)
Create an instance.
Authorization options are passed to underlying Instagram client.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Instance options. Properties
|
Members
client
Instance of Instagram
that serves
as underlying source of data.
isEmpty
true
if there is tracks set up, false
otherwise.
Methods
follow(userId) → {InstagramStream}
Follow user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
string | User ID. |
Returns:
This instance.
- Type
- InstagramStream
following() → {Array.<string>}
Get currently tracked users.
Returns:
List of user IDs.
- Type
- Array.<string>
setAccessToken(token) → {InstagramStream}
Set access token.
Parameters:
Name | Type | Description |
---|---|---|
token |
string | Access token. |
Returns:
This instance.
- Type
- InstagramStream
track(tag) → {InstagramStream}
Track tag.
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | Tag name. |
Returns:
This instance.
- Type
- InstagramStream
tracking() → {Array.<string>}
Get currently tracked tags.
Returns:
List of tags.
- Type
- Array.<string>
unfollow(userId) → {InstagramStream}
Unfollow user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
string | User ID. |
Returns:
This instance.
- Type
- InstagramStream
untrack(tag) → {InstagramStream}
Untrack tag.
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | Tag name. |
Returns:
This instance.
- Type
- InstagramStream