View Source Tw.V1_1.UserMention (Tw v0.1.0)
UserMention data structure and related functions. https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/entities
Link to this section Summary
Types
field description id
ID of the mentioned user, as an integer. Example: 6253282
.id_str
If of the mentioned user, as a string. Example: "6253282"
.indices
An array of integers representing the offsets within the Tweet text where the user reference begins and ends. The first integer represents the location of the ‘@’ character of the user mention. The second integer represents the location of the first non-screenname character following the user mention. Example: [4,15]
.name
Display name of the referenced user. Example: "Twitter API"
.screen_name
Screen name of the referenced user. Example: "twitterapi"
.
Link to this section Types
Specs
t() :: %Tw.V1_1.UserMention{ id: integer(), id_str: binary(), indices: [integer()], name: binary(), screen_name: binary() }
field description id
ID of the mentioned user, as an integer. Example: 6253282
.id_str
If of the mentioned user, as a string. Example: "6253282"
.indices
An array of integers representing the offsets within the Tweet text where the user reference begins and ends. The first integer represents the location of the ‘@’ character of the user mention. The second integer represents the location of the first non-screenname character following the user mention. Example: [4,15]
.name
Display name of the referenced user. Example: "Twitter API"
.screen_name
Screen name of the referenced user. Example: "twitterapi"
.
Link to this section Functions
Specs
Decode JSON-decoded map into t/0