View Source PlacetelAPI.Api.CallDetailRecords (placetel_api v2.0.1)

API calls for all endpoints tagged CallDetailRecords.

Link to this section Summary

Functions

Get call detail records Provides a list of call detail records

Link to this section Functions

Link to this function

get_call_detail_records(connection, date, opts \\ [])

View Source
@spec get_call_detail_records(Tesla.Env.client(), Date.t(), keyword()) ::
  {:ok, [PlacetelAPI.Model.CallDetailRecord.t()]} | {:error, Tesla.Env.t()}

Get call detail records Provides a list of call detail records

parameters

Parameters

  • connection (PlacetelAPI.Connection): Connection to server
  • date (Date.t): YYYY-MM-DD
  • opts (keyword): Optional parameters
    • :page (integer()): Page of results to fetch.
    • :per_page (integer()): Number of results to return per page.

returns

Returns

  • {:ok, [%CallDetailRecord{}, ...]} on success
  • {:error, Tesla.Env.t} on failure