pingpp.agreements.create({
contract_no: '123456789',
app: 'APP_ID',
channel: channel,
extra: extra,
metadata: {}
}, function (err, agreement) {
// YOUR CODE
});
pingpp.agreements.retrieve(
'AGREEMENT_ID',
function (err, agreement) {
// YOUR CODE
}
);
pingpp.agreements.list(
{ app: 'APP_ID', per_page: 3 },
function(err, agreements) {
// YOUR CODE
}
);
pingpp.agreements.cancel(
'AGREEMENT_ID',
function (err, agreement) {
// YOUR CODE
}
);
pingpp.agreements.notify(
'AGREEMENT_ID',
function (err, resp) {
// YOUR CODE
}
);