You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-csc-ui/src/api/communication.js

18 lines
499 B

import Vue from 'vue';
export function createFax(options, subscriberId) {
return new Promise((resolve, reject) => {
let headers = {
'Content-Type': 'application/json',
};
let mergedParams = Object.assign(options, subscriberId);
let payload = JSON.stringify(mergedParams);
Vue.http.post('/api/faxes/', payload, { headers: headers }).then(() => {
resolve();
}).catch((err)=>{
reject(err);
});
});
}