Skip to content

Commit 2d57ca4

Browse files
docs: 同步 SurveyCore SDK 文档
1 parent 031a556 commit 2d57ca4

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

sdk/api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ Accept: application/json
169169
"target": 1,
170170
"threads": 1,
171171
"answer_duration": [60, 120],
172+
"random_ip_enabled": false,
173+
"proxy_source": "default",
174+
"custom_proxy_api": "",
175+
"proxy_area_code": "",
176+
"random_ip_user_id": 0,
177+
"random_ip_device_id": "",
178+
"ip_extract_endpoint": "",
179+
"random_ip_lease_minute": 1,
172180
"random_ua_keys": ["wechat", "mobile", "pc"],
173181
"random_ua_ratios": {
174182
"wechat": 33,

sdk/schemas.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ outline: deep
2323
| `random_ua_enabled` | `boolean` | 是否启用随机 User-Agent。 |
2424
| `random_ua_keys` | `string[]` | User-Agent 类型。默认 `wechat``mobile``pc`|
2525
| `random_ua_ratios` | `object` | User-Agent 类型权重。 |
26+
| `random_ip_enabled` | `boolean` | 是否启用随机 IP。启用后只在提交前取用代理。 |
27+
| `proxy_source` | `string` | 代理来源。可选值:`default``benefit``custom`|
28+
| `custom_proxy_api` | `string` | 自定义代理 API 地址。`proxy_source``custom` 时使用。 |
29+
| `proxy_area_code` | `string` | 官方随机 IP 地区编码。 |
30+
| `random_ip_user_id` | `number` | 官方随机 IP 用户 ID。 |
31+
| `random_ip_device_id` | `string` | 官方随机 IP 设备 ID。 |
32+
| `ip_extract_endpoint` | `string` | 官方随机 IP 提取接口覆盖地址。 |
33+
| `random_ip_lease_minute` | `number` | 官方随机 IP 租约分钟数。默认 `1`|
2634
| `reliability_mode_enabled` | `boolean` | 是否启用信度优化。 |
2735
| `psycho_target_alpha` | `number` | 预期 Cronbach's α。默认 `0.85`|
2836
| `reverse_fill_enabled` | `boolean` | 是否启用反向填充。 |

0 commit comments

Comments
 (0)