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
Functions
@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"
}}
@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"
}}
@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"
}}
@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"
}}
@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"
}}
@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"
}}