zalo-api-sdk 1.0.0 → 1.1.0
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/apis/loginQR.js
CHANGED
|
@@ -37,7 +37,7 @@ async function loadLoginPage(ctx) {
|
|
|
37
37
|
}
|
|
38
38
|
async function getLoginInfo(ctx, version) {
|
|
39
39
|
const form = new URLSearchParams();
|
|
40
|
-
form.append("continue", "https://zalo.me/
|
|
40
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
41
41
|
form.append("v", version);
|
|
42
42
|
return await request(ctx, "https://id.zalo.me/account/logininfo", {
|
|
43
43
|
headers: {
|
|
@@ -51,7 +51,7 @@ async function getLoginInfo(ctx, version) {
|
|
|
51
51
|
"sec-fetch-dest": "empty",
|
|
52
52
|
"sec-fetch-mode": "cors",
|
|
53
53
|
"sec-fetch-site": "same-origin",
|
|
54
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
54
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
55
55
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
56
56
|
},
|
|
57
57
|
body: form,
|
|
@@ -63,7 +63,7 @@ async function getLoginInfo(ctx, version) {
|
|
|
63
63
|
async function verifyClient(ctx, version) {
|
|
64
64
|
const form = new URLSearchParams();
|
|
65
65
|
form.append("type", "device");
|
|
66
|
-
form.append("continue", "https://zalo.me/
|
|
66
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
67
67
|
form.append("v", version);
|
|
68
68
|
return await request(ctx, "https://id.zalo.me/account/verify-client", {
|
|
69
69
|
headers: {
|
|
@@ -77,7 +77,7 @@ async function verifyClient(ctx, version) {
|
|
|
77
77
|
"sec-fetch-dest": "empty",
|
|
78
78
|
"sec-fetch-mode": "cors",
|
|
79
79
|
"sec-fetch-site": "same-origin",
|
|
80
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
80
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
81
81
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
82
82
|
},
|
|
83
83
|
body: form,
|
|
@@ -88,7 +88,7 @@ async function verifyClient(ctx, version) {
|
|
|
88
88
|
}
|
|
89
89
|
async function generate(ctx, version) {
|
|
90
90
|
const form = new URLSearchParams();
|
|
91
|
-
form.append("continue", "https://zalo.me/
|
|
91
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
92
92
|
form.append("v", version);
|
|
93
93
|
return await request(ctx, "https://id.zalo.me/account/authen/qr/generate", {
|
|
94
94
|
headers: {
|
|
@@ -102,7 +102,7 @@ async function generate(ctx, version) {
|
|
|
102
102
|
"sec-fetch-dest": "empty",
|
|
103
103
|
"sec-fetch-mode": "cors",
|
|
104
104
|
"sec-fetch-site": "same-origin",
|
|
105
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
105
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
106
106
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
107
107
|
},
|
|
108
108
|
body: form,
|
|
@@ -40,7 +40,7 @@ async function loadLoginPage(ctx) {
|
|
|
40
40
|
}
|
|
41
41
|
async function getLoginInfo(ctx, version) {
|
|
42
42
|
const form = new URLSearchParams();
|
|
43
|
-
form.append("continue", "https://zalo.me/
|
|
43
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
44
44
|
form.append("v", version);
|
|
45
45
|
return await utils.request(ctx, "https://id.zalo.me/account/logininfo", {
|
|
46
46
|
headers: {
|
|
@@ -54,7 +54,7 @@ async function getLoginInfo(ctx, version) {
|
|
|
54
54
|
"sec-fetch-dest": "empty",
|
|
55
55
|
"sec-fetch-mode": "cors",
|
|
56
56
|
"sec-fetch-site": "same-origin",
|
|
57
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
57
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
58
58
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
59
59
|
},
|
|
60
60
|
body: form,
|
|
@@ -66,7 +66,7 @@ async function getLoginInfo(ctx, version) {
|
|
|
66
66
|
async function verifyClient(ctx, version) {
|
|
67
67
|
const form = new URLSearchParams();
|
|
68
68
|
form.append("type", "device");
|
|
69
|
-
form.append("continue", "https://zalo.me/
|
|
69
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
70
70
|
form.append("v", version);
|
|
71
71
|
return await utils.request(ctx, "https://id.zalo.me/account/verify-client", {
|
|
72
72
|
headers: {
|
|
@@ -80,7 +80,7 @@ async function verifyClient(ctx, version) {
|
|
|
80
80
|
"sec-fetch-dest": "empty",
|
|
81
81
|
"sec-fetch-mode": "cors",
|
|
82
82
|
"sec-fetch-site": "same-origin",
|
|
83
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
83
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
84
84
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
85
85
|
},
|
|
86
86
|
body: form,
|
|
@@ -91,7 +91,7 @@ async function verifyClient(ctx, version) {
|
|
|
91
91
|
}
|
|
92
92
|
async function generate(ctx, version) {
|
|
93
93
|
const form = new URLSearchParams();
|
|
94
|
-
form.append("continue", "https://zalo.me/
|
|
94
|
+
form.append("continue", "https://chat.zalo.me/");
|
|
95
95
|
form.append("v", version);
|
|
96
96
|
return await utils.request(ctx, "https://id.zalo.me/account/authen/qr/generate", {
|
|
97
97
|
headers: {
|
|
@@ -105,7 +105,7 @@ async function generate(ctx, version) {
|
|
|
105
105
|
"sec-fetch-dest": "empty",
|
|
106
106
|
"sec-fetch-mode": "cors",
|
|
107
107
|
"sec-fetch-site": "same-origin",
|
|
108
|
-
Referer: "https://id.zalo.me/account?continue=https%3A%2F%
|
|
108
|
+
Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
|
|
109
109
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
110
110
|
},
|
|
111
111
|
body: form,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zalo-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Hien Nguyen Juno",
|
|
6
6
|
"email": "hiennguyen270995@gmail.com",
|
|
7
7
|
"url": "https://github.com/hiennguyen270995"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"description": "fork từ zalo-api-final - API Zalo cá nhân hoàn chỉnh cho JavaScript. Xây dựng node n8n, backend quản lý nhiều tài khoản Zalo, phần mềm bán hàng, quản trị Zalo cho công ty tăng doanh số. Gửi tin nhắn, tạo nhóm, quản lý bạn bè, chặn/bỏ chặn người dùng, chấp nhận lời mời kết bạn, nhận webhook, lấy danh sách bạn bè, quản lý nhóm và tự động hóa chat Zalo. Hỗ trợ multi-account management cho doanh nghiệp. Thư viện Zalo API cuối cùng và tốt nhất.",
|
|
10
|
+
"description": "fork, maintain trực tiếp từ zalo-api-final - API Zalo cá nhân hoàn chỉnh cho JavaScript. Xây dựng node n8n, backend quản lý nhiều tài khoản Zalo, phần mềm bán hàng, quản trị Zalo cho công ty tăng doanh số. Gửi tin nhắn, tạo nhóm, quản lý bạn bè, chặn/bỏ chặn người dùng, chấp nhận lời mời kết bạn, nhận webhook, lấy danh sách bạn bè, quản lý nhóm và tự động hóa chat Zalo. Hỗ trợ multi-account management cho doanh nghiệp. Thư viện Zalo API cuối cùng và tốt nhất.",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -29,80 +29,30 @@
|
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/
|
|
32
|
+
"url": "git+https://github.com/bach205/zalo-api.git"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://github.com/
|
|
34
|
+
"homepage": "https://github.com/bach205/zalo-api",
|
|
35
35
|
"bugs": {
|
|
36
|
-
"url": "https://github.com/
|
|
36
|
+
"url": "https://github.com/bach205/zalo-api/issues"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=18.0.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
|
-
"zalo-api-
|
|
42
|
+
"zalo-api-sdk",
|
|
43
43
|
"zalo",
|
|
44
44
|
"zalo-api",
|
|
45
|
-
"api-zalo",
|
|
46
45
|
"zalo-chat",
|
|
47
|
-
"
|
|
48
|
-
"zalo-
|
|
49
|
-
"
|
|
46
|
+
"zalo-bot",
|
|
47
|
+
"zalo-automation",
|
|
48
|
+
"zalo cá nhân",
|
|
50
49
|
"n8n-node",
|
|
51
|
-
"
|
|
52
|
-
"xay-dung-node-n8n",
|
|
53
|
-
"xây dựng node n8n",
|
|
54
|
-
"backend-zalo",
|
|
55
|
-
"quan-ly-nhieu-tai-khoan",
|
|
56
|
-
"quản lý nhiều tài khoản",
|
|
50
|
+
"webhook",
|
|
57
51
|
"multi-account",
|
|
58
|
-
"
|
|
59
|
-
"quan-ly-tai-khoan-zalo",
|
|
60
|
-
"quản lý tài khoản zalo",
|
|
61
|
-
"phan-mem-ban-hang",
|
|
62
|
-
"phần mềm bán hàng",
|
|
63
|
-
"ban-hang-zalo",
|
|
64
|
-
"bán hàng zalo",
|
|
65
|
-
"quan-tri-zalo",
|
|
66
|
-
"quản trị zalo",
|
|
67
|
-
"zalo-doanh-nghiep",
|
|
68
|
-
"zalo doanh nghiệp",
|
|
69
|
-
"tang-doanh-so",
|
|
70
|
-
"tăng doanh số",
|
|
71
|
-
"zalo-marketing",
|
|
72
|
-
"marketing-zalo",
|
|
73
|
-
"zalo-automation",
|
|
74
|
-
"tu-dong-hoa-zalo",
|
|
52
|
+
"quản lý nhiều tài khoản",
|
|
75
53
|
"tự động hóa zalo",
|
|
76
|
-
"gui-tin-nhan",
|
|
77
|
-
"gửi tin nhắn",
|
|
78
|
-
"tao-nhom",
|
|
79
|
-
"tạo nhóm",
|
|
80
|
-
"quan-ly-ban-be",
|
|
81
|
-
"quản lý bạn bè",
|
|
82
|
-
"chan-nguoi-dung",
|
|
83
|
-
"chặn người dùng",
|
|
84
|
-
"bo-chan",
|
|
85
|
-
"bỏ chặn",
|
|
86
|
-
"chap-nhan-ban-be",
|
|
87
|
-
"chấp nhận bạn bè",
|
|
88
|
-
"loi-moi-ket-ban",
|
|
89
|
-
"lời mời kết bạn",
|
|
90
|
-
"webhook",
|
|
91
|
-
"danh-sach-ban-be",
|
|
92
|
-
"danh sách bạn bè",
|
|
93
|
-
"quan-ly-nhom",
|
|
94
|
-
"quản lý nhóm",
|
|
95
|
-
"zalo-bot",
|
|
96
|
-
"bot-zalo",
|
|
97
54
|
"chatbot",
|
|
98
|
-
"
|
|
99
|
-
"final",
|
|
100
|
-
"cuoi-cung",
|
|
101
|
-
"hoan-chinh",
|
|
102
|
-
"business",
|
|
103
|
-
"enterprise",
|
|
104
|
-
"sales",
|
|
105
|
-
"revenue"
|
|
55
|
+
"bot zalo"
|
|
106
56
|
],
|
|
107
57
|
"dependencies": {
|
|
108
58
|
"crypto-js": "^4.2.0",
|
|
File without changes
|