Home Forums Voip Optimisation Voip Modules Reply To: Voip Modules

Nishit Shan
Post count: 840

Hello Mark,

Your concern about the customer API, I have checked the API response and sent you the response.
I am hoping that the person who is testing the API is familiar with API handling.

Don’t worry i will do something in documentation that can make end user easier to understand.
Below is a sample code which can be used to get the response.

const formdata = new FormData();
formdata.append(“name”, “webmakely”);

const requestOptions = {
method: “GET”,
body: formdata,
redirect: “follow”

fetch(“https://portal.voip.us/api/get-pending-number?name=Webmaklay”, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));

NOTE: There is various method using which third party user can get the response and display as they wish to display on there own website. Currently the code i provided to you is “JavaAscript-Fetch” method.

FYI: I am working on admin side Miscellaneous Settings , so there is nothing to be worried about any changes you noticed on this page.