NodePing.Contacts.get_by_id

You're seeing just the function get_by_id, go back to NodePing.Contacts module for more information.
Link to this function

get_by_id(token, id, customerid \\ nil)

View Source

Get a contact on your NodePing account or subaccount

Parameters

  • token - NodePing API token that was provided with account
  • id - contact ID for getting a single contact
  • customerid - optional ID to access a subaccount

Examples

iex> token = System.fetch_env!("TOKEN")
iex> id = "201205050153W2Q4C-BKPGH"
iex> {:ok, result} = NodePing.Contacts.get_by_id(token, id)