apifm-webapi 25.4.13 → 25.4.16

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
@@ -89,6 +89,12 @@ module.exports = {
89
89
  nextMobileSegment: (data) => {
90
90
  return request('/common/mobile-segment/next', false, 'post', data)
91
91
  },
92
+ queryMobileLocationV2: (mobile = '') => {
93
+ return request('https://common.apifm.com/' + subDomain + '/common/mobile-segment/location', false, 'get', { mobile })
94
+ },
95
+ nextMobileSegmentV2: (data) => {
96
+ return request('https://common.apifm.com/' + subDomain + '/common/mobile-segment/next', false, 'post', data)
97
+ },
92
98
  forexRate: (fromCode, toCode) => {
93
99
  return request('/forex/rate', true, 'get', { fromCode, toCode })
94
100
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "25.04.13",
4
- "description": "上传文件接口速度优化",
3
+ "version": "25.04.16",
4
+ "description": "手机号码归属地查询,号段接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"