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

URL 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
display_urlURL pasted/typed into Tweet. Example: "bit.ly/2so49n2".
expanded_urlExpanded version of display_url . Example: "http://bit.ly/2so49n2".
indicesAn array of integers representing offsets within the Tweet text where the URL begins and ends. The first integer represents the location of the first character of the URL in the Tweet text. The second integer represents the location of the first non-URL character after the end of the URL. Example: [30,53].
urlWrapped URL, corresponding to the value embedded directly into the raw Tweet text, and the values for the indices parameter. Example: "https://t.co/yzocNFvJuL".

Functions

Decode JSON-decoded map into t/0

Link to this section Types

Specs

t() :: %Tw.V1_1.URL{
  display_url: binary(),
  expanded_url: binary(),
  indices: [integer()],
  url: binary()
}
fielddescription
display_urlURL pasted/typed into Tweet. Example: "bit.ly/2so49n2".
expanded_urlExpanded version of display_url . Example: "http://bit.ly/2so49n2".
indicesAn array of integers representing offsets within the Tweet text where the URL begins and ends. The first integer represents the location of the first character of the URL in the Tweet text. The second integer represents the location of the first non-URL character after the end of the URL. Example: [30,53].
urlWrapped URL, corresponding to the value embedded directly into the raw Tweet text, and the values for the indices parameter. Example: "https://t.co/yzocNFvJuL".

Link to this section Functions

Specs

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

Decode JSON-decoded map into t/0