n8n-nodes-zalo-oa-integration
Version:
Tích hợp Zalo Official Account API v3.0 vào n8n
64 lines • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZaloOAApi = void 0;
class ZaloOAApi {
constructor() {
this.name = 'zaloOAApi';
this.displayName = 'Zalo OA API';
this.documentationUrl = 'https://developers.zalo.me/docs/api/official-account-api-230';
this.properties = [
{
displayName: 'App ID',
name: 'appId',
type: 'string',
default: '',
},
{
displayName: 'Secret Key',
name: 'secretKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
default: '',
description: 'Official Account Access Token từ Zalo OA',
typeOptions: {
password: true,
},
},
{
displayName: 'Refresh Token',
name: 'refreshToken',
type: 'string',
default: '',
description: 'Refresh Token để làm mới Access Token khi hết hạn',
typeOptions: {
password: true,
},
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
access_token: '={{ $credentials.accessToken }}',
},
},
};
this.test = {
request: {
baseURL: 'https://openapi.zalo.me/v3.0/oa',
url: '/getprofile',
method: 'GET',
},
};
}
}
exports.ZaloOAApi = ZaloOAApi;
//# sourceMappingURL=ZaloOAApi.credentials.js.map