Skip to content

Latest commit

 

History

History
109 lines (74 loc) · 2.88 KB

File metadata and controls

109 lines (74 loc) · 2.88 KB

SibApiV3Sdk.ProcessApi

All URIs are relative to https://api.sendinblue.com/v3

Method HTTP request Description
getProcess GET /processes/{processId} Return the informations for a process
getProcesses GET /processes Return all the processes for your account

getProcess

GetProcess getProcess(processId)

Return the informations for a process

Example

var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;

// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new SibApiV3Sdk.ProcessApi();

var processId = 789; // Number | Id of the process

apiInstance.getProcess(processId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
processId Number Id of the process

Return type

GetProcess

Authorization

api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

getProcesses

GetProcesses getProcesses(opts)

Return all the processes for your account

Example

var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;

// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new SibApiV3Sdk.ProcessApi();

var opts = { 
  'limit': 10, // Number | Number limitation for the result returned
  'offset': 0 // Number | Beginning point in the list to retrieve from.
};
apiInstance.getProcesses(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
limit Number Number limitation for the result returned [optional] [default to 10]
offset Number Beginning point in the list to retrieve from. [optional] [default to 0]

Return type

GetProcesses

Authorization

api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json