apifm-webapi 24.12.19 → 25.1.10

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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1167,6 +1167,9 @@ module.exports = {
1167
1167
  jsonList: (data) => {
1168
1168
  return request('/json/list', true, 'post', data)
1169
1169
  },
1170
+ jsonListV2: (data) => {
1171
+ return request('/json/list/v2', true, 'post', data)
1172
+ },
1170
1173
  jsonSet: (data) => {
1171
1174
  return request('/json/set', true, 'post', data)
1172
1175
  },
@@ -1487,6 +1490,9 @@ module.exports = {
1487
1490
  commonIP: (ip) => {
1488
1491
  return request('/common/ip', false, 'get', { ip })
1489
1492
  },
1493
+ commonIPV2: (ip = '') => {
1494
+ return request('https://common.apifm.com/' + subDomain + '/common/ip', false, 'get', { ip })
1495
+ },
1490
1496
  peisongfei: () => {
1491
1497
  return request('/fee/peisong/list', true, 'get')
1492
1498
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.12.19",
4
- "description": "newsExtField 接口升级",
3
+ "version": "25.01.10",
4
+ "description": "获取IP归属地新接口",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"