NodePing.Information.get_locations-exclamation-mark

You're seeing just the function get_locations-exclamation-mark, go back to NodePing.Information module for more information.

Get region location information, the region name and list of probe locations.

Parameters

  • token - NodePing API token that is provided with account

Examples

iex> token = System.fetch_env!("TOKEN")
iex> result = NodePing.Information.get_locations!(token)
iex> Map.keys(result)
["eao", "eur", "lam", "nam", "wlw"]
Link to this function

get_locations!(token, loc)

View Source

Get region location information, the region name and list of probe locations.

Parameters

  • token - NodePing API token that is provided with account

Examples

iex> token = System.fetch_env!("TOKEN")
iex> result = NodePing.Information.get_locations!(token, "nam")
iex> Map.keys(result)
["locations", "regionname"]