apifm-webapi 23.11.2 → 24.6.18
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/index.js +147 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -54,7 +54,10 @@ baseRequest.interceptors.response.use(
|
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
const request = (url, needSubDomain, method, data) => {
|
|
57
|
-
|
|
57
|
+
let _url = (needSubDomain ? '/' + subDomain : '') + url
|
|
58
|
+
if (url.indexOf("http") == 0 ) {
|
|
59
|
+
_url = url
|
|
60
|
+
}
|
|
58
61
|
return baseRequest({
|
|
59
62
|
url: API_BASE_URL + _url,
|
|
60
63
|
needSubDomain: needSubDomain,
|
|
@@ -123,6 +126,9 @@ module.exports = {
|
|
|
123
126
|
scoreLogs: (data) => {
|
|
124
127
|
return request('/score/logs', true, 'post', data)
|
|
125
128
|
},
|
|
129
|
+
scoreDynamics: () => {
|
|
130
|
+
return request('/score/dynamics', true, 'get')
|
|
131
|
+
},
|
|
126
132
|
shareGroupGetScore: (referrer, encryptedData, iv) => {
|
|
127
133
|
return request('/score/share/wxa/group', true, 'post', {
|
|
128
134
|
referrer,
|
|
@@ -597,6 +603,11 @@ module.exports = {
|
|
|
597
603
|
token
|
|
598
604
|
})
|
|
599
605
|
},
|
|
606
|
+
randomNick: (len = '') => {
|
|
607
|
+
return request('/user/randomNick', true, 'get', {
|
|
608
|
+
len
|
|
609
|
+
})
|
|
610
|
+
},
|
|
600
611
|
userDetailSpreadUser: (token, uid) => {
|
|
601
612
|
return request('/user/detail/spreadUser', true, 'get', {
|
|
602
613
|
token, uid
|
|
@@ -874,6 +885,9 @@ module.exports = {
|
|
|
874
885
|
uploadFileFromUrl: (remoteFileUrl = '', ext = '') => {
|
|
875
886
|
return request('/dfs/upload/url', true, 'post', { remoteFileUrl, ext })
|
|
876
887
|
},
|
|
888
|
+
uploadFileFromUrlV2: data => {
|
|
889
|
+
return request('https://oss.apifm.com/uploadByUrl', false, 'post', { ...data, subDomain })
|
|
890
|
+
},
|
|
877
891
|
uploadFileList: (path = '') => {
|
|
878
892
|
return request('/dfs/upload/list', true, 'post', { path })
|
|
879
893
|
},
|
|
@@ -910,6 +924,9 @@ module.exports = {
|
|
|
910
924
|
cmsArticlesV2: (data) => {
|
|
911
925
|
return request('/cms/news/list/v2', true, 'post', data)
|
|
912
926
|
},
|
|
927
|
+
cmsArticlesV3: (data) => {
|
|
928
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/list/v2', true, 'post', data)
|
|
929
|
+
},
|
|
913
930
|
cmsArticleUsefulLogs: (data) => {
|
|
914
931
|
return request('/cms/news/useful/logs', true, 'post', data)
|
|
915
932
|
},
|
|
@@ -919,21 +936,36 @@ module.exports = {
|
|
|
919
936
|
cmsArticleDetailV2: (id, token = '') => {
|
|
920
937
|
return request('/cms/news/detail/v2', true, 'get', { id, token })
|
|
921
938
|
},
|
|
939
|
+
cmsArticleDetailV3: data => {
|
|
940
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/detail/v2', true, 'get', data)
|
|
941
|
+
},
|
|
922
942
|
cmsArticlePreNext: (id) => {
|
|
923
943
|
return request('/cms/news/preNext', true, 'get', { id })
|
|
924
944
|
},
|
|
945
|
+
cmsArticlePreNextV2: (id) => {
|
|
946
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/preNext', true, 'get', { id })
|
|
947
|
+
},
|
|
925
948
|
cmsArticleCreate: (data) => {
|
|
926
949
|
return request('/cms/news/put', true, 'post', data)
|
|
927
950
|
},
|
|
951
|
+
cmsArticleCreateV2: (data) => {
|
|
952
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/put', true, 'post', data)
|
|
953
|
+
},
|
|
928
954
|
cmsArticleDelete: (token, id) => {
|
|
929
955
|
return request('/cms/news/del', true, 'post', { token, id })
|
|
930
956
|
},
|
|
957
|
+
cmsArticleDeleteV2: (token, id) => {
|
|
958
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/del', true, 'post', { token, id })
|
|
959
|
+
},
|
|
931
960
|
cmsArticleUseless: (data) => {
|
|
932
961
|
return request('/cms/news/useful', true, 'post', data)
|
|
933
962
|
},
|
|
934
963
|
cmsArticleModifyExtNumber: (data) => {
|
|
935
964
|
return request('/cms/news/modifyExtNumber', true, 'post', data)
|
|
936
965
|
},
|
|
966
|
+
cmsArticleModifyExtNumberV2: (data) => {
|
|
967
|
+
return request('https://cms.apifm.com/{merchantId}/cms/news/modifyExtNumber', true, 'post', data)
|
|
968
|
+
},
|
|
937
969
|
newsOwnerUserViewStatistics: (data) => {
|
|
938
970
|
return request('/newsOwnerUserViewStatistics/list', true, 'post', data)
|
|
939
971
|
},
|
|
@@ -1054,6 +1086,9 @@ module.exports = {
|
|
|
1054
1086
|
modifyUserPasswordByUserName: (data) => {
|
|
1055
1087
|
return request('/user/username/modifyPassword', true, 'post', data)
|
|
1056
1088
|
},
|
|
1089
|
+
anonymousUserInfo: (id) => {
|
|
1090
|
+
return request('/user/anonymous/info', true, 'get', { id })
|
|
1091
|
+
},
|
|
1057
1092
|
uniqueId: (type = '') => {
|
|
1058
1093
|
return request('/uniqueId/get', true, 'get', { type })
|
|
1059
1094
|
},
|
|
@@ -1151,6 +1186,12 @@ module.exports = {
|
|
|
1151
1186
|
idcardCheck: (token, name, idCardNo) => {
|
|
1152
1187
|
return request('/user/idcard', true, 'post', { token, name, idCardNo })
|
|
1153
1188
|
},
|
|
1189
|
+
idcardCheckManualReview: (data) => {
|
|
1190
|
+
return request('/user/idcard/manualReview', true, 'post', data)
|
|
1191
|
+
},
|
|
1192
|
+
idcardCheckManualReviewInfo: (token) => {
|
|
1193
|
+
return request('/user/idcard/manualReview/info', true, 'get', { token })
|
|
1194
|
+
},
|
|
1154
1195
|
loginout: (token) => {
|
|
1155
1196
|
return request('/user/loginout', true, 'get', { token })
|
|
1156
1197
|
},
|
|
@@ -1200,6 +1241,9 @@ module.exports = {
|
|
|
1200
1241
|
token, code, appid
|
|
1201
1242
|
})
|
|
1202
1243
|
},
|
|
1244
|
+
bindOpenidV11: data => {
|
|
1245
|
+
return request('/user/wxapp/bindOpenid', true, 'post', data)
|
|
1246
|
+
},
|
|
1203
1247
|
bindWxmpOpenid: data => {
|
|
1204
1248
|
return request('/user/wxmp/bindOpenid', true, 'post', data)
|
|
1205
1249
|
},
|
|
@@ -2196,4 +2240,106 @@ module.exports = {
|
|
|
2196
2240
|
shopIotExecute: data => {
|
|
2197
2241
|
return request('/shopIot/execute', true, 'post', data)
|
|
2198
2242
|
},
|
|
2243
|
+
wxTemplateNumberList: (token) => {
|
|
2244
|
+
return request('/wxTemplateNumber/list', true, 'get', { token })
|
|
2245
|
+
},
|
|
2246
|
+
wxTemplateNumberSubscribe: (data) => {
|
|
2247
|
+
return request('/wxTemplateNumber/subscribe', true, 'post', data)
|
|
2248
|
+
},
|
|
2249
|
+
errandsTaskPublish: (data) => {
|
|
2250
|
+
return request('/errandsTask/publish', true, 'post', data)
|
|
2251
|
+
},
|
|
2252
|
+
errandsTaskPay: (data) => {
|
|
2253
|
+
return request('/errandsTask/pay', true, 'post', data)
|
|
2254
|
+
},
|
|
2255
|
+
errandsTaskAccept: (data) => {
|
|
2256
|
+
return request('/errandsTask/accept', true, 'post', data)
|
|
2257
|
+
},
|
|
2258
|
+
errandsTaskFinish: (data) => {
|
|
2259
|
+
return request('/errandsTask/finish', true, 'post', data)
|
|
2260
|
+
},
|
|
2261
|
+
errandsTaskSuccess: (data) => {
|
|
2262
|
+
return request('/errandsTask/success', true, 'post', data)
|
|
2263
|
+
},
|
|
2264
|
+
activityVoteInfoList: (data) => {
|
|
2265
|
+
return request('/activityVoteInfo/list', true, 'post', data)
|
|
2266
|
+
},
|
|
2267
|
+
activityVoteInfoJoinList: (data) => {
|
|
2268
|
+
return request('/activityVoteInfo/joinList', true, 'post', data)
|
|
2269
|
+
},
|
|
2270
|
+
activityVoteInfoDetail: (id) => {
|
|
2271
|
+
return request('/activityVoteInfo/detail', true, 'get', { id })
|
|
2272
|
+
},
|
|
2273
|
+
activityVoteInfoJoinDetail: (joinId) => {
|
|
2274
|
+
return request('/activityVoteInfo/joinDetail', true, 'get', { joinId })
|
|
2275
|
+
},
|
|
2276
|
+
activityVoteInfoScoreToVotes: (activityId) => {
|
|
2277
|
+
return request('/activityVoteInfo/scoreToVotes', true, 'get', { activityId })
|
|
2278
|
+
},
|
|
2279
|
+
activityVoteInfoFetchVoteNumber: (data) => {
|
|
2280
|
+
return request('/activityVoteInfo/fetchVoteNumber', true, 'post', data)
|
|
2281
|
+
},
|
|
2282
|
+
activityVoteInfoJoin: (data) => {
|
|
2283
|
+
return request('/activityVoteInfo/join', true, 'post', data)
|
|
2284
|
+
},
|
|
2285
|
+
activityVoteInfoVote: (data) => {
|
|
2286
|
+
return request('/activityVoteInfo/vote', true, 'post', data)
|
|
2287
|
+
},
|
|
2288
|
+
activityVoteBlance: (token, activityId) => {
|
|
2289
|
+
return request('/activityVoteInfo/balance', true, 'get', { token, activityId })
|
|
2290
|
+
},
|
|
2291
|
+
stringsToPlainText: (content, len = '') => {
|
|
2292
|
+
return request('/common/strings/plainText', true, 'post', { content, len })
|
|
2293
|
+
},
|
|
2294
|
+
blindBoxFriendsMatch: (data) => {
|
|
2295
|
+
return request('/blindBoxFriends/match', true, 'post', data)
|
|
2296
|
+
},
|
|
2297
|
+
blindBoxFriendsPush: (data) => {
|
|
2298
|
+
return request('/blindBoxFriends/push', true, 'post', data)
|
|
2299
|
+
},
|
|
2300
|
+
blindBoxFriendsPay: (data) => {
|
|
2301
|
+
return request('/blindBoxFriends/pay', true, 'post', data)
|
|
2302
|
+
},
|
|
2303
|
+
blindBoxFriendsChangeStatus: (data) => {
|
|
2304
|
+
return request('/blindBoxFriends/changeStatus', true, 'post', data)
|
|
2305
|
+
},
|
|
2306
|
+
blindBoxFriendsDelete: (data) => {
|
|
2307
|
+
return request('/blindBoxFriends/delete', true, 'post', data)
|
|
2308
|
+
},
|
|
2309
|
+
blindBoxFriendsPullLogs: (data) => {
|
|
2310
|
+
return request('/blindBoxFriends/pullLogs', true, 'post', data)
|
|
2311
|
+
},
|
|
2312
|
+
blindBoxFriendsPushLogs: (data) => {
|
|
2313
|
+
return request('/blindBoxFriends/pushLogs', true, 'post', data)
|
|
2314
|
+
},
|
|
2315
|
+
blindBoxFriendsRechargeRule: () => {
|
|
2316
|
+
return request('/blindBoxFriends/rechargeRule', true, 'get')
|
|
2317
|
+
},
|
|
2318
|
+
blindBoxFriendsBuyPullTimes: (data) => {
|
|
2319
|
+
return request('/blindBoxFriends/buyPullTimes', true, 'post', data)
|
|
2320
|
+
},
|
|
2321
|
+
blindBoxFriendsUnlock: (data) => {
|
|
2322
|
+
return request('/blindBoxFriends/unlock', true, 'post', data)
|
|
2323
|
+
},
|
|
2324
|
+
blindBoxFriendsBalance: (token) => {
|
|
2325
|
+
return request('/blindBoxFriends/balance', true, 'get', { token })
|
|
2326
|
+
},
|
|
2327
|
+
cpactivityInfoDetail: (id) => {
|
|
2328
|
+
return request('/cpactivityInfo/detail', true, 'get', { id })
|
|
2329
|
+
},
|
|
2330
|
+
cpactivityUpdateUserInfo: (data) => {
|
|
2331
|
+
return request('/cpactivityInfo/updateUserInfo', true, 'post', data)
|
|
2332
|
+
},
|
|
2333
|
+
cpactivityJoinDetail: (data) => {
|
|
2334
|
+
return request('/cpactivityInfo/join', true, 'get', data)
|
|
2335
|
+
},
|
|
2336
|
+
cpactivityJoin: (data) => {
|
|
2337
|
+
return request('/cpactivityInfo/join', true, 'post', data)
|
|
2338
|
+
},
|
|
2339
|
+
cpactivityJoinDynamics: (cpactivityId) => {
|
|
2340
|
+
return request('/cpactivityInfo/joinDynamics', true, 'get', { cpactivityId })
|
|
2341
|
+
},
|
|
2342
|
+
cpactivityPay: (data) => {
|
|
2343
|
+
return request('/cpactivityInfo/pay', true, 'post', data)
|
|
2344
|
+
},
|
|
2199
2345
|
}
|