All URIs are relative to https://api.saasgrids.com/apis/crms/
| Method | HTTP request | Description |
|---|---|---|
| createContact | POST /{userId}/contacts | Creates a new contact |
| deleteContactById | DELETE /{userId}/contacts/{contactId} | Delete contact by Id |
| getAllContacts | GET /{userId}/contacts | Get all contacts |
| getContactByFilter | GET /{userId}/contacts/filters/{filterId} | Get all contacts by filter |
| getContactById | GET /{userId}/contacts/{contactId} | Get contact by Id |
| getContactFilters | GET /{userId}/contacts/filters | Get all contact filters |
| updateContactById | PUT /{userId}/contacts/{contactId} | Update contact by Id |
Contact createContact(userId, body)
Creates a new contact
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
Contact body = new Contact(); // Contact | Contact object that needs to be created
try {
Contact result = apiInstance.createContact(userId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#createContact");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization | |
| body | Contact | Contact object that needs to be created |
- Content-Type: application/json
- Accept: application/json
deleteContactById(userId)
Delete contact by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
try {
apiInstance.deleteContactById(userId);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#deleteContactById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
InlineResponse2003 getAllContacts(userId, email)
Get all contacts
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
String email = "email_example"; // String | Email id of the contacts
try {
InlineResponse2003 result = apiInstance.getAllContacts(userId, email);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getAllContacts");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization | |
| String | Email id of the contacts |
- Content-Type: application/json
- Accept: application/json
InlineResponse2004 getContactByFilter(userId, filterId, limit, skip)
Get all contacts by filter
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
String filterId = "filterId_example"; // String | ObjectId of filter
String limit = "limit_example"; // String | Number of records to be fetched
String skip = "skip_example"; // String | Skip value got from previous request, can be empty for first request
try {
InlineResponse2004 result = apiInstance.getContactByFilter(userId, filterId, limit, skip);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContactByFilter");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization | |
| filterId | String | ObjectId of filter | |
| limit | String | Number of records to be fetched | |
| skip | String | Skip value got from previous request, can be empty for first request | [optional] |
- Content-Type: application/json
- Accept: application/json
Contact getContactById(userId, contactId)
Get contact by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
String contactId = "contactId_example"; // String | ObjectId of contact
try {
Contact result = apiInstance.getContactById(userId, contactId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContactById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization | |
| contactId | String | ObjectId of contact |
- Content-Type: application/json
- Accept: application/json
InlineResponse2002 getContactFilters(userId)
Get all contact filters
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
try {
InlineResponse2002 result = apiInstance.getContactFilters(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContactFilters");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization |
- Content-Type: application/json
- Accept: application/json
updateContactById(userId, body)
Update contact by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.ContactsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ContactsApi apiInstance = new ContactsApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
Contact body = new Contact(); // Contact | Contact object that needs to be updated
try {
apiInstance.updateContactById(userId, body);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#updateContactById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User instance id returned from saasgrids after authorization | |
| body | Contact | Contact object that needs to be updated |
null (empty response body)
- Content-Type: application/json
- Accept: application/json