pangea-server 3.3.164 → 3.3.166
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.InstagramApi = void 0;
|
|
4
4
|
const GRAPH_VERSION = 'v21.0';
|
|
5
|
-
class
|
|
5
|
+
class InstagramApi {
|
|
6
6
|
constructor(config) {
|
|
7
7
|
this.__accountId = config.accountId;
|
|
8
8
|
this.__accessToken = config.accessToken;
|
|
@@ -19,4 +19,4 @@ class Instagram {
|
|
|
19
19
|
return data;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
22
|
+
exports.InstagramApi = InstagramApi;
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.WhatsappApi = void 0;
|
|
7
7
|
const client_1 = __importDefault(require("@whatsapp-cloudapi/client"));
|
|
8
|
-
class
|
|
8
|
+
class WhatsappApi {
|
|
9
9
|
constructor(config) {
|
|
10
10
|
this.__phoneNumberId = config.phoneNumberId;
|
|
11
11
|
this.__accessToken = config.accessToken;
|
|
@@ -14,4 +14,4 @@ class Whatsapp {
|
|
|
14
14
|
return client_1.default.sendTextMessage({ from: this.__phoneNumberId, to, text, accessToken: this.__accessToken });
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
17
|
+
exports.WhatsappApi = WhatsappApi;
|