mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-26 14:22:34 -06:00
wip
This commit is contained in:
parent
60b9cb1f47
commit
2c60673984
1 changed files with 6 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// import { Request } from "./request.js";
|
||||
import { Axios } from "./axios.js";
|
||||
// import { Axios } from "./axios.js";
|
||||
import { Got } from "./got.js";
|
||||
import { camelCaseRequestWrapper } from "./utils";
|
||||
import { name, version } from "../../package.json";
|
||||
import { Phlo, PhloInterface } from "../resources/phlo";
|
||||
|
|
@ -60,19 +61,15 @@ export class Client {
|
|||
authId: authId,
|
||||
authToken: authToken,
|
||||
version: "v1",
|
||||
url: "https://api.numbers.plivodev.com/v1/Account/" + authId,
|
||||
url: "https://api.plivo.com/v1/Account/" + authId,
|
||||
userAgent: `${"plivo-node"}/${version || "Unknown Version"} (Node: ${
|
||||
process.version
|
||||
})`
|
||||
},
|
||||
options
|
||||
);
|
||||
console.log("testinsfsfsdjfdshfjhsldjfhjsdhfdsjhfjdsfhjsdahfsdahf")
|
||||
console.log(typeof(options.url),"url")
|
||||
console.log(options.userAgent,"useragent")
|
||||
console.log(options.authId,"authid")
|
||||
console.log(options.authToken,"authtoken")
|
||||
let client = camelCaseRequestWrapper(Axios(options));
|
||||
console.log(options,"12311122222222222")
|
||||
let client = camelCaseRequestWrapper(Got(options));
|
||||
|
||||
this.calls = new CallInterface(client);
|
||||
this.accounts = new AccountInterface(client);
|
||||
|
|
@ -130,7 +127,7 @@ export class PhloClient {
|
|||
options
|
||||
);
|
||||
|
||||
let client = camelCaseRequestWrapper(Axios(options));
|
||||
let client = camelCaseRequestWrapper(Got(options));
|
||||
|
||||
this.phlo = function(phloId) {
|
||||
let dd = new Phlo(client, { phloId: phloId, authId: authId });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue