All URIs are relative to https://api.pipedrive.com/v1
Method | HTTP request | Description |
---|---|---|
addCallLog | POST /callLogs | Add a call log |
addCallLogAudioFile | POST /callLogs/{id}/recordings | Attach an audio file to the call log |
deleteCallLog | DELETE /callLogs/{id} | Delete a call log |
getCallLog | GET /callLogs/{id} | Get details of a call log |
getUserCallLogs | GET /callLogs | Get all call logs assigned to a particular user |
BaseResponse addCallLog(opts)
Add a call log
Adds a new call log
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.CallLogsApi();
let opts = {
'callLogObject': new Pipedrive.CallLogObject() // CallLogObject |
};
apiInstance.addCallLog(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
callLogObject | CallLogObject | [optional] |
- Content-Type: application/json
- Accept: application/json
BaseResponse addCallLogAudioFile(id, file)
Attach an audio file to the call log
Adds an audio recording to the call log. That audio can be played by those who have access to the call log object.
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.CallLogsApi();
let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log
let file = "/path/to/file"; // File | Audio file supported by the HTML5 specification
apiInstance.addCallLogAudioFile(id, file).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID received when you create the call log | |
file | File | Audio file supported by the HTML5 specification |
- Content-Type: multipart/form-data
- Accept: application/json
BaseResponse deleteCallLog(id)
Delete a call log
Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities.
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.CallLogsApi();
let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log
apiInstance.deleteCallLog(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID received when you create the call log |
- Content-Type: Not defined
- Accept: application/json
BaseResponse getCallLog(id)
Get details of a call log
Returns details of a specific call log
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.CallLogsApi();
let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log
apiInstance.getCallLog(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID received when you create the call log |
- Content-Type: Not defined
- Accept: application/json
BaseResponse getUserCallLogs(opts)
Get all call logs assigned to a particular user
Returns all call logs assigned to a particular user
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.CallLogsApi();
let opts = {
'limit': 20, // Number | For pagination, the limit of entries to be returned
'start': 0 // Number | For pagination, the position that represents the first result for the page
};
apiInstance.getUserCallLogs(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | For pagination, the limit of entries to be returned | [optional] |
start | Number | For pagination, the position that represents the first result for the page | [optional] |
- Content-Type: Not defined
- Accept: application/json