mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
Merge pull request #174 from plivo/DEVEX-112
fix: TS Client & buy number
This commit is contained in:
commit
cea0a873be
4 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
2
types/rest/client.d.ts
vendored
2
types/rest/client.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue