Skip to main content

Get Twitter Relations

Synopsis

This operator gets friends or followers of a specific user.

Description

With the Get Twitter Relations operator, you can specify a Twitter user and receive the users friends or followers.

Select a Twitter connection to specify the Twitter account for the Twitter API access. Specify the user name or the user ID of interest. Finally, set if you want to receive the followers or friends of the specified user.

Note that the standard Twitter API has strict rate limits! Please consult the Twitter documentation on how to avoid hitting these rate limits.

Input

connection

This input port expects a Connection object if any. See the parameterconnection entryfor more information.

Output

output

An example set consisting of data from the Twitter API. This consists of the IDs of friends or the IDs of followers. Additionally it contains the name or ID, that was searched for.

connection

This output port delivers the Connection object from the input port. If the input port is not connected the port delivers nothing.

Parameters

Connection source

This parameter indicates how the connection should be specified. It gives you two options: repository and predefined. The parameter is not visible if theconnectioninput port is connected.

Connection entry

This parameter is only available when theconnection sourceparameter is set torepository. This parameter is used to specify a repository location that represents a connection entry. The connection can also be provided using theconnectioninput port.

Connection

This parameter is only available when theconnection sourceparameter is set topredefined. The connection details for the Twitter connection can be specified here. If you have already configured a Twitter connection, you can select it from the drop-down list. If you have not configured a Twitter connection yet, select the icon to the right of the drop-down list. Create a new Twitter connection in the Manage Connections box.

Query type

Specifies whether a user should be searched by id or screen name.

Id

The id of the user.

Name

The screen name of the user.

Relation

Specifies whether friends or followers of that user should be retrieved.