All URIs are relative to https://api.saasgrids.com/apis/crms/
Method | HTTP request | Description |
---|---|---|
createCall | POST /{userId}/calls | Creates a new call |
deleteCallById | DELETE /{userId}/calls/{callId} | Delete call by Id |
getAllCalls | GET /{userId}/calls | Get all calls |
getCallById | GET /{userId}/calls/{callId} | Get call by Id |
updateCallById | PUT /{userId}/calls/{callId} | Update call by Id |
Call createCall(userId, body)
Creates a new call
var crms = require('saasgrids');
var defaultClient = crms.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new crms.CallsApi();
var userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
var body = new crms.Call(); // Call | Call object that needs to be created
apiInstance.createCall(userId, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
body | Call | Call object that needs to be created |
- Content-Type: application/json
- Accept: application/json
deleteCallById(userId, callId)
Delete call by Id
var crms = require('saasgrids');
var defaultClient = crms.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new crms.CallsApi();
var userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
var callId = "callId_example"; // String | ObjectId of call
apiInstance.deleteCallById(userId, callId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
callId | String | ObjectId of call |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
[Call] getAllCalls(userId, email)
Get all calls
var crms = require('saasgrids');
var defaultClient = crms.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new crms.CallsApi();
var userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
var email = "email_example"; // String | Email id of the call
apiInstance.getAllCalls(userId, email).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
String | Email id of the call |
- Content-Type: application/json
- Accept: application/json
Call getCallById(userId, callId)
Get call by Id
var crms = require('saasgrids');
var defaultClient = crms.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new crms.CallsApi();
var userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
var callId = "callId_example"; // String | ObjectId of call
apiInstance.getCallById(userId, callId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
callId | String | ObjectId of call |
- Content-Type: application/json
- Accept: application/json
updateCallById(userId, body, callId)
Update call by Id
var crms = require('saasgrids');
var defaultClient = crms.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new crms.CallsApi();
var userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
var body = new crms.Call(); // Call | Call object that needs to be updated
var callId = "callId_example"; // String | ObjectId of call
apiInstance.updateCallById(userId, body, callId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
body | Call | Call object that needs to be updated | |
callId | String | ObjectId of call |
null (empty response body)
- Content-Type: application/json
- Accept: application/json