Search…
Get Call Logs With Details
Get call logs with details within a timeframe
Detailed call logs are only available for calls made within the last 5 days
get
https://fuse.plumvoice.com
/api/all_logs/{start}/{end}
Getting Call Logs With Details

Possible Response Codes

  • 200: success
  • 401: authentication headers invalid or the account is inactive
  • 404: call log not found
  • 405: invalid HTTP method supplied (only GET allowed)
  • 500: database error
The return structure contains the following item(s):
Name
Data Type
Always Present
Description
error
string
No
Message indicating what went wrong with the request when the HTTP code is not 200.
calls
mixed
No
Array of calls that match the query parameters. Supplied when the HTTP code is 200. See the table below for more information on the data in this item.
total_calls
int
No
The total number of calls for the given start, end and number parameters. Supplied when the HTTP code is 200. See the table below for more information on the data in this item.

​

Response Data Definitions

Single Call Entry

Name
Data Type
Value
dest
string
Destination phone number of the call.
src
string
Source phone number of the call.
start
int
Start UNIX timestamp for this call.
end
int
End Unix timestamp for this call.
session_id
string
Unique ID for this call, also used to fetch individual call logs.
details
json
json format of log details for each call
false if the call was made more than 5 days ago
type
string
Type for this call (inbound, outbound or transfer).
log
bool
Flag indicating if a call log is available for this call.

Sample Code

This sample PHP code makes a request to this method:
1
<?php
2
// account and application settings
3
$email = '<your_email_address>';
4
$developer_key = '<your_developer_key>';
5
$start = strtotime('midnight -5 days);
6
$end = strtotime('midnight');
7
$number = '6177123000';
8
$limit = 10000;
9
$offset = 0;
10
​
11
// build the URL
12
$url = 'https://fuse.plumvoice.com/api/all_logs/'.$start.'/'.$end.'?number='.$number.'&limit='.$limit.'&offset='.$offset;
13
​
14
$ch = curl_init();
15
curl_setopt($ch, CURLOPT_USERPWD, $email.':'.$developer_key);
16
curl_setopt($ch, CURLOPT_URL, $url);
17
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
18
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
19
$result = curl_exec($ch);
20
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
21
curl_close($ch);
22
var_dump($result);
23
var_dump($http_code);
Copied!
Last modified 1yr ago