All URIs are relative to https://api.pipedrive.com/v1
Method | HTTP request | Description |
---|---|---|
deleteGlobalMessage | DELETE /globalMessages/{id} | Dismiss a global message |
getGlobalMessages | GET /globalMessages | Get global messages |
GlobalMessageDelete deleteGlobalMessage(id)
Dismiss a global message
Removes global message from being shown, if message is dismissible
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';
let apiInstance = new Pipedrive.GlobalMessagesApi();
let id = 56; // Number | ID of global message to be dismissed.
apiInstance.deleteGlobalMessage(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of global message to be dismissed. |
- Content-Type: Not defined
- Accept: application/json
GlobalMessageGet getGlobalMessages(opts)
Get global messages
Returns data about global messages to display for the authorized 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';
let apiInstance = new Pipedrive.GlobalMessagesApi();
let opts = {
'limit': 1 // Number | Number of messages to get from 1 to 100. The message number 1 is returned by default.
};
apiInstance.getGlobalMessages(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | Number of messages to get from 1 to 100. The message number 1 is returned by default. | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json