View Source Tw.V1_1.Entities (Tw v0.1.1)

Entities 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

t()
fielddescription
hashtagsRepresents hashtags which have been parsed out of the Tweet text.
mediaRepresents media elements uploaded with the Tweet.
urlsRepresents URLs included in the text of a Tweet.
user_mentionsRepresents other Twitter users mentioned in the text of the Tweet.
symbolsRepresents symbols, i.e. $cashtags, included in the text of the Tweet.
pollsRepresents Twitter Polls included in the Tweet.

Functions

Decode JSON-decoded map into t/0

Link to this section Types

Specs

t() :: %Tw.V1_1.Entities{
  hashtags: [Tw.V1_1.Hashtag.t()] | nil,
  media: [Tw.V1_1.Media.t()] | nil,
  polls: [Tw.V1_1.Poll.t()] | nil,
  symbols: [Tw.V1_1.Symbol.t()] | nil,
  urls: [Tw.V1_1.URL.t()] | nil,
  user_mentions: [Tw.V1_1.UserMention.t()] | nil
}
fielddescription
hashtagsRepresents hashtags which have been parsed out of the Tweet text.
mediaRepresents media elements uploaded with the Tweet.
urlsRepresents URLs included in the text of a Tweet.
user_mentionsRepresents other Twitter users mentioned in the text of the Tweet.
symbolsRepresents symbols, i.e. $cashtags, included in the text of the Tweet.
pollsRepresents Twitter Polls included in the Tweet.

Link to this section Functions

Specs

decode!(map()) :: t()

Decode JSON-decoded map into t/0