ExTwitter.Parser (extwitter v0.14.0) View Source

Provides parser logics for API results.

Link to this section Summary

Functions

Parse access_token response.

Parse batch user/lookup request parameters for the API.

Parse bounding box record from the API response JSON.

Parse coordinates record from the API response JSON.

Parse direct message record from the API response JSON.

Parse geo record from the API response JSON.

Parse hashtags record from the API response JSON.

Parse trend record from the API response JSON.

Parse cursored ids.

Parse list record from the API response JSON.

Parse media record from the API response JSON.

Parse place record from the API response JSON.

Parse polls record from the API response JSON.

Parse user profile banner from the API response JSON.

Parse profile geo record from the API response JSON.

Parse follower relationship from the API response JSON.

Parse request parameters for the API.

Parse request_token response

Parse size record from the API response JSON.

Parse symbols record from the API response JSON.

Parse trend record from the API response JSON.

Parse tweet record from the API response JSON.

Parse urls record from the API response JSON.

Parse user record from the API response JSON.

Parse user mentions record from the API response JSON.

Parse cursored users.

Link to this section Functions

Link to this function

parse_access_token(object)

View Source

Specs

parse_access_token(map()) :: ExTwitter.Model.AccessToken.t()

Parse access_token response.

Link to this function

parse_batch_user_lookup_params(options)

View Source

Specs

parse_batch_user_lookup_params(keyword()) :: [{String.t(), String.t()}]

Parse batch user/lookup request parameters for the API.

Link to this function

parse_bounding_box(object)

View Source

Specs

parse_bounding_box(map() | nil) :: ExTwitter.Model.BoundingBox.t() | nil

Parse bounding box record from the API response JSON.

Link to this function

parse_coordinates(object)

View Source

Specs

parse_coordinates(map() | nil) :: ExTwitter.Model.Coordinates.t() | nil

Parse coordinates record from the API response JSON.

Link to this function

parse_direct_message(object)

View Source

Parse direct message record from the API response JSON.

Specs

parse_entities(map()) :: ExTwitter.Model.Entities.t()
Link to this function

parse_extended_entities(object)

View Source

Specs

parse_extended_entities(map() | nil) ::
  ExTwitter.Model.ExtendedEntities.t() | nil

Specs

parse_geo(map() | nil) :: ExTwitter.Model.Geo.t() | nil

Parse geo record from the API response JSON.

Specs

parse_hashtags(map() | [map()] | nil) ::
  ExTwitter.Model.Hashtag.t() | [ExTwitter.Model.Hashtag.t()]

Parse hashtags record from the API response JSON.

Specs

parse_ids(map()) :: [pos_integer()]

Parse trend record from the API response JSON.

Link to this function

parse_ids_with_cursor(object)

View Source

Specs

parse_ids_with_cursor(map()) :: ExTwitter.Model.Cursor.t()

Parse cursored ids.

Specs

parse_list(map()) :: ExTwitter.Model.List.t()

Parse list record from the API response JSON.

Specs

parse_media(map() | [map()] | nil) ::
  ExTwitter.Model.Media.t() | [ExTwitter.Model.Media.t()]

Parse media record from the API response JSON.

Specs

parse_place(map() | nil) :: ExTwitter.Model.Place.t() | nil

Parse place record from the API response JSON.

Specs

parse_polls(map() | [map()] | nil) ::
  ExTwitter.Model.Poll.t() | [ExTwitter.Model.Poll.t()]

Parse polls record from the API response JSON.

Link to this function

parse_profile_banner(object)

View Source

Specs

parse_profile_banner(map()) :: ExTwitter.Model.ProfileBanner.t()

Parse user profile banner from the API response JSON.

Link to this function

parse_profile_geo(objects)

View Source

Specs

parse_profile_geo(map() | [map()] | nil) ::
  ExTwitter.Model.ProfileGeo.t() | [ExTwitter.Model.ProfileGeo.t()] | nil

Parse profile geo record from the API response JSON.

Link to this function

parse_relationships(object)

View Source

Specs

parse_relationships(map()) :: [ExTwitter.Model.Relationship.t()]

Parse follower relationship from the API response JSON.

Link to this function

parse_request_params(options)

View Source

Specs

parse_request_params(keyword()) :: [{String.t(), String.t()}]

Parse request parameters for the API.

Link to this function

parse_request_token(object)

View Source

Specs

parse_request_token(map()) :: ExTwitter.Model.RequestToken.t()

Parse request_token response

Specs

parse_rules(map() | [map()] | nil) ::
  ExTwitter.Model.Role.t() | [ExTwitter.Model.Role.t()]

Specs

parse_size(map()) :: ExTwitter.Model.Size.t()

Parse size record from the API response JSON.

Specs

parse_symbols(map() | [map()] | nil) ::
  ExTwitter.Model.Symbol.t() | [ExTwitter.Model.Symbol.t()]

Parse symbols record from the API response JSON.

Specs

parse_trend(map()) :: ExTwitter.Model.Trend.t()

Parse trend record from the API response JSON.

Specs

parse_tweet(map() | nil) :: ExTwitter.Model.Tweet.t() | nil

Parse tweet record from the API response JSON.

Specs

parse_upload(map()) :: ExTwitter.Model.Upload.t()

Specs

parse_urls(map() | [map()] | nil) ::
  ExTwitter.Model.URL.t() | [ExTwitter.Model.URL.t()]

Parse urls record from the API response JSON.

Specs

parse_user(map()) :: ExTwitter.Model.User.t()

Parse user record from the API response JSON.

Link to this function

parse_user_mentions(objects)

View Source

Specs

parse_user_mentions(map() | [map()] | nil) ::
  ExTwitter.Model.UserMention.t() | [ExTwitter.Model.UserMention.t()]

Parse user mentions record from the API response JSON.

Link to this function

parse_users_with_cursor(object)

View Source

Specs

parse_users_with_cursor(map()) :: ExTwitter.Model.Cursor.t()

Parse cursored users.