@vonage/accounts 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/secrets.js +4 -4
- package/package.json +2 -2
package/dist/secrets.js
CHANGED
|
@@ -18,24 +18,24 @@ class Secrets extends server_client_1.Client {
|
|
|
18
18
|
}
|
|
19
19
|
createSecret(apiKey, secret) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const response = yield this.sendPostRequest(`${this.config.
|
|
21
|
+
const response = yield this.sendPostRequest(`${this.config.apiHost}/accounts/${apiKey}/secrets`, { secret });
|
|
22
22
|
return response.data;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
deleteSecret(apiKey, id) {
|
|
26
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
yield this.sendDeleteRequest(`${this.config.
|
|
27
|
+
yield this.sendDeleteRequest(`${this.config.apiHost}/accounts/${apiKey}/secrets/${id}`);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
getSecret(apiKey, id) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const response = yield this.sendGetRequest(`${this.config.
|
|
32
|
+
const response = yield this.sendGetRequest(`${this.config.apiHost}/accounts/${apiKey}/secrets/${id}`);
|
|
33
33
|
return response.data;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
listSecrets(apiKey) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const response = yield this.sendGetRequest(`${this.config.
|
|
38
|
+
const response = yield this.sendGetRequest(`${this.config.apiHost}/accounts/${apiKey}/secrets`);
|
|
39
39
|
return response.data;
|
|
40
40
|
});
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/accounts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Vonage Account Management API",
|
|
5
5
|
"author": "Chris Tankersley <chris@ctankersley.com>",
|
|
6
6
|
"homepage": "https://developer.vonage.com",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"url": "https://github.com/Vonage/vonage-node-sdk/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vonage/server-client": "^0.
|
|
40
|
+
"@vonage/server-client": "^0.4.0"
|
|
41
41
|
}
|
|
42
42
|
}
|