Merge pull request #174 from plivo/DEVEX-112

fix: TS Client & buy number
This commit is contained in:
Mohammed Huzaif 2021-02-09 17:28:43 +05:30 committed by GitHub
commit cea0a873be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View file

@ -1,10 +1,13 @@
# Change Log
## [4.14.1](https://github.com/plivo/plivo-node/releases/tag/v4.14.1)(2021-02-09)
- Fix Buy Number API & env variables support for TypeScript.
## [4.14.0](https://github.com/plivo/plivo-node/releases/tag/v4.14.0)(2021-01-29)
- Add axios as HTTP client library.
## [4.13.0](https://github.com/plivo/plivo-node/releases/tag/v4.13.0)(2021-01-19)
- Add Typescript support.
- Add TypeScript support.
## [4.12.0](https://github.com/plivo/plivo-node/releases/tag/v4.12.0)(2020-11-17)
- Add number_priority support for Powerpack API.

View file

@ -116,7 +116,7 @@ export class PhoneNumberInterface extends PlivoResourceInterface {
let client = this[clientKey];
return new Promise((resolve, reject) => {
client('POST', action + number + '/', params)
client('POST', 'PhoneNumber/' + number + '/', params)
.then(response => {
resolve(new BuyNumberResponse(response.body, idField));
})

View file

@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.14.0",
"version": "4.14.1",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [

View file

@ -7,7 +7,7 @@ export function validateSignature(uri: string, nonce: string, signature: string,
* You can also pass in additional parameters accepted by the node requests module.
*/
export class Client {
constructor(authId: string, authToken: string, options?: string);
constructor(authId?: string, authToken?: string, options?: string);
calls: CallInterface;
accounts: AccountInterface;
subaccounts: SubaccountInterface;