InstagramStream

InstagramStream

Class representing Instagram stream.

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
Name Type Attributes Description
client_id string <optional>

Client ID.

client_secret string <optional>

Client Secret.

access_token string <optional>

Access token.

Source:

Members

client

Instance of Instagram that serves as underlying source of data.

Source:

isEmpty

true if there is tracks set up, false otherwise.

Source:

Methods

follow(userId) → {InstagramStream}

Follow user.

Parameters:
Name Type Description
userId string

User ID.

Source:
Returns:

This instance.

Type
InstagramStream

following() → {Array.<string>}

Get currently tracked users.

Source:
Returns:

List of user IDs.

Type
Array.<string>

setAccessToken(token) → {InstagramStream}

Set access token.

Parameters:
Name Type Description
token string

Access token.

Source:
Returns:

This instance.

Type
InstagramStream

track(tag) → {InstagramStream}

Track tag.

Parameters:
Name Type Description
tag string

Tag name.

Source:
Returns:

This instance.

Type
InstagramStream

tracking() → {Array.<string>}

Get currently tracked tags.

Source:
Returns:

List of tags.

Type
Array.<string>

unfollow(userId) → {InstagramStream}

Unfollow user.

Parameters:
Name Type Description
userId string

User ID.

Source:
Returns:

This instance.

Type
InstagramStream

untrack(tag) → {InstagramStream}

Untrack tag.

Parameters:
Name Type Description
tag string

Tag name.

Source:
Returns:

This instance.

Type
InstagramStream