0.0.5 • Published 3 years ago
signalmash-voice v0.0.5
SignalmashVoice
This library was generated with Angular CLI version 12.2.0.
Installation
npm install signalmash-voice
import { SignalmashSmsService } from 'signalmash-sms'
constructor(public voiceService:SignalmashVoiceService){}
let data ={
Username:"sumit",
Password:"N5QFinpPMIwRigI"
}
let data1 ={
NPA:"401",
NXX:"",
Qty:"2",
Auth_key:"jnxnjxcnjdckmaA"
}
let data2 ={
RateCenter:"JERSEYCITY",
State:"NJ",
Qty:"2",
Auth_key:"jnxnjxcnjdckmaA"
}
let data3 ={
TF_PREFIX:"888",
Qty:"2",
Auth_key:"jnxnjxcnjdckmaA"
}
let data4 ={
DID:"4012514563",
Auth_key:"jnxnjxcnjdckmaA"
}
let data5 ={
FROM:"4756321269",
TO:"3964521235",
AMD:"true",
Recording:"false,
Auth_key:"jnxnjxcnjdckmaA"
}
this.voiceService.login(data).subscribe(res=>{
console.log("AuthKey",res);
});
this.voiceService.searchnpanxx(data1).subscribe(res=>{
console.log("SearchByNpa",res);
});
this.voiceService.searchratecenter(data2).subscribe(res=>{
console.log("SearchByRate",res);
});
this.voiceService.searchtollfree(data3).subscribe(res=>{
console.log("SearchByTollFree",res);
});
this.voiceService.listconnection(data3).subscribe(res=>{
console.log("ListConnection",res);
});
this.voiceService.buy(data4).subscribe(res=>{
console.log("DID BUY",res);
});
this.voiceService.originate(data5).subscribe(res=>{
console.log("Sms",res);
});