View Source Reydenx.Price (Reyden-X v0.1.0)

Provides access to methods for obtaining current prices and fare categories

Summary

Functions

All Price Categories

All Prices for GoodGame

All Prices for Trovo

All Prices for Twitch

All Prices for Vk Play

All Prices for YouTube

Types

@type t() ::
  {:error,
   %Reydenx.Model.ResponseError{
     message: term(),
     path: term(),
     status_code: term()
   }}
  | {:ok,
     %Reydenx.Model.Result{
       cache_expires_at: term(),
       cached: term(),
       cursor: term(),
       request_id: term(),
       result: term()
     }}

Functions

Link to this function

categories(token)

View Source (since 0.1.0)
@spec categories(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) :: t()

All Price Categories

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.categories(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.categories(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}
Link to this function

goodgame(token)

View Source (since 0.1.0)
@spec goodgame(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) :: t()

All Prices for GoodGame

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.goodgame(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.goodgame(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}
Link to this function

trovo(token)

View Source (since 0.1.0)
@spec trovo(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) ::
  t()

All Prices for Trovo

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.trovo(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.trovo(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}
Link to this function

twitch(token)

View Source (since 0.1.0)
@spec twitch(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) :: t()

All Prices for Twitch

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.twitch(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.twitch(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}
Link to this function

vkplay(token)

View Source (since 0.1.0)
@spec vkplay(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) :: t()

All Prices for Vk Play

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.vkplay(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.vkplay(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}
Link to this function

youtube(token)

View Source (since 0.1.0)
@spec youtube(
  token :: %Reydenx.Model.Token{
    access_token: term(),
    expires_in: term(),
    token_type: term()
  }
) :: t()

All Prices for YouTube

See: API Documentation

Examples:

### Success:

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.youtube(token)
{:ok, %Reydenx.Model.Result{}}

### Fail

iex> {:ok, token} = Reydenx.new()
iex> Reydenx.Price.youtube(token)
{:error, %Reydenx.Model.ResponseError{
  path: "/",
  status_code: 404,
  message: "Not Found"
}}