All URIs are relative to https://api.saasgrids.com/apis/crms/
Method | HTTP request | Description |
---|---|---|
createNote | POST /{userId}/notes | Creates a new note |
deleteNoteById | DELETE /{userId}/note/{noteId} | Delete note by Id |
getAllNotes | GET /{userId}/notes | Get all notes |
getNoteById | GET /{userId}/note/{noteId} | Get note by Id |
updateNoteById | PUT /{userId}/note/{noteId} | Update note by Id |
createNote(userId, body)
Creates a new note
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NotesApi apiInstance = new NotesApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
Note body = new Note(); // Note | Note object that needs to be created
try {
apiInstance.createNote(userId, body);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#createNote");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
body | Note | Note object that needs to be created |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
deleteNoteById(userId)
Delete note by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NotesApi apiInstance = new NotesApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
try {
apiInstance.deleteNoteById(userId);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#deleteNoteById");
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
List<Note> getAllNotes(userId, email)
Get all notes
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NotesApi apiInstance = new NotesApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
String email = "email_example"; // String | Email id of the note
try {
List<Note> result = apiInstance.getAllNotes(userId, email);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#getAllNotes");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
String | Email id of the note |
- Content-Type: application/json
- Accept: application/json
Note getNoteById(userId, noteId)
Get note by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NotesApi apiInstance = new NotesApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
String noteId = "noteId_example"; // String | ObjectId of acount
try {
Note result = apiInstance.getNoteById(userId, noteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#getNoteById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
noteId | String | ObjectId of acount |
- Content-Type: application/json
- Accept: application/json
updateNoteById(userId, body)
Update note by Id
// Import classes:
//import crms.ApiClient;
//import crms.ApiException;
//import crms.Configuration;
//import crms.auth.*;
//import saasgrids.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NotesApi apiInstance = new NotesApi();
String userId = "userId_example"; // String | User instance id returned from saasgrids after authorization
Note body = new Note(); // Note | Note object that needs to be updated
try {
apiInstance.updateNoteById(userId, body);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#updateNoteById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | User instance id returned from saasgrids after authorization | |
body | Note | Note object that needs to be updated |
null (empty response body)
- Content-Type: application/json
- Accept: application/json