adspower-browser 2.0.0-beta.2 → 2.0.0-beta.4

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/README.MD CHANGED
@@ -50,15 +50,15 @@ ads start
50
50
  **Two forms for `<arg>`:**
51
51
 
52
52
  1. **Single value (shorthand)** — for profile-related commands, pass one profile ID or number:
53
- - `ads open-browser <ProfileId>`
54
- - `ads close-browser <ProfileId>`
55
- - `ads get-profile-cookies <ProfileId>`
56
- - `ads get-browser-active <ProfileId>`
57
- - `ads get-profile-ua <ProfileId>` (single ID)
58
- - `ads new-fingerprint <ProfileId>` (single ID)
53
+ - `ads open-browser <profile_id>`
54
+ - `ads close-browser <profile_id>`
55
+ - `ads get-profile-cookies <profile_id>`
56
+ - `ads get-browser-active <profile_id>`
57
+ - `ads get-profile-ua <profile_id>` (single ID; a numeric token is treated as `profile_no`)
58
+ - `ads new-fingerprint <profile_id>` (single ID; a numeric token is treated as `profile_no`)
59
59
 
60
60
  2. **JSON string** — full parameters for any command (see Command Reference below):
61
- - `ads open-browser '{"profileId":"abc123","launchArgs":"..."}'`
61
+ - `ads open-browser '{"profile_id":"abc123","launch_args":"..."}'`
62
62
  - Commands with no params: omit `<arg>` or use `'{}'`.
63
63
 
64
64
  ## Essential Commands With CLI
@@ -77,56 +77,56 @@ ads status # Get the status of the adspower runtime
77
77
  ### Browser profile – open/close
78
78
 
79
79
  ```bash
80
- ads open-browser <profileId> # Or JSON: profileId, profileNo?, ipTab?, launchArgs?, clearCacheAfterClosing?, cdpMask?
81
- ads close-browser <profileId> # Or JSON: profileId? | profileNo? (one required)
80
+ ads open-browser <profile_id> # Or JSON: profile_id, profile_no?, ip_tab?, launch_args?, headless?, last_opened_tabs?, proxy_detection?, password_filling?, password_saving?, cdp_mask?, delete_cache?, device_scale?
81
+ ads close-browser <profile_id> # Or JSON: profile_id? | profile_no? (one required)
82
82
  ```
83
83
 
84
84
  ### Browser profile – create/update/delete/list
85
85
 
86
86
  ```bash
87
- ads create-browser '{"groupId":"0","proxyid":"random",...}' # groupId + account field + proxy required
88
- ads update-browser '{"profileId":"...",...}' # profileId required
89
- ads delete-browser '{"profileIds":["..."]}' # profileIds required
90
- ads get-browser-list '{}' # Or groupId?, limit?, page?, profileId?, profileNo?, sortType?, sortOrder?
87
+ ads create-browser '{"group_id":"0","user_proxy_config":{"proxy_soft":"no_proxy"},...}' # group_id + account field required; proxy optional (defaults to no_proxy; proxyid takes priority over user_proxy_config when both given)
88
+ ads update-browser '{"profile_id":"...",...}' # profile_id required
89
+ ads delete-browser '{"profile_id":["..."]}' # profile_id required
90
+ ads get-browser-list '{}' # Or group_id?, limit?, page?, profile_id[]?, profile_no[]?, sort_type?, sort_order?, tag_ids?, tags_filter?, name?, name_filter?
91
91
  ads get-opened-browser # No params
92
92
  ```
93
93
 
94
94
  ### Browser profile – move/cookies/UA/fingerprint/cache/share/active
95
95
 
96
96
  ```bash
97
- ads move-browser '{"groupId":"1","userIds":["..."]}' # groupId + userIds required
98
- ads get-profile-cookies <profileId> # Or JSON: profileId? | profileNo?
99
- ads get-profile-ua <profileId> # Or JSON: profileId[]? | profileNo[]? (up to 10)
97
+ ads move-browser '{"group_id":"1","user_ids":["..."]}' # group_id + user_ids required
98
+ ads get-profile-cookies <profile_id> # Or JSON: profile_id? | profile_no?
99
+ ads get-profile-ua <profile_id> # Or JSON: profile_id[]? | profile_no[]? (up to 10); numeric shorthand maps to profile_no[]
100
100
  ads close-all-profiles # No params
101
- ads new-fingerprint <profileId> # Or JSON: profileId[]? | profileNo[]? (up to 10)
102
- ads delete-cache-v2 '{"profileIds":["..."],"type":["cookie","history"]}' # type: local_storage|indexeddb|extension_cache|cookie|history|image_file
103
- ads share-profile '{"profileIds":["..."],"receiver":"email@example.com"}' # receiver required; shareType?, content?
104
- ads get-browser-active <profileId> # Or JSON: profileId? | profileNo?
105
- ads get-cloud-active '{"userIds":"id1,id2"}' # userIds comma-separated, max 100
101
+ ads new-fingerprint <profile_id> # Or JSON: profile_id[]? | profile_no[]? (up to 10); numeric shorthand maps to profile_no[]
102
+ ads delete-cache-v2 '{"profile_id":["..."],"type":["cookie","history"]}' # type: local_storage|indexeddb|extension_cache|cookie|history|image_file
103
+ ads share-profile '{"profile_id":["..."],"receiver":"email@example.com"}' # receiver required; share_type?, content?
104
+ ads get-browser-active <profile_id> # Or JSON: profile_id? | profile_no?
105
+ ads get-cloud-active '{"user_ids":"id1,id2"}' # user_ids comma-separated, max 100
106
106
  ```
107
107
 
108
108
  ### Group
109
109
 
110
110
  ```bash
111
- ads create-group '{"groupName":"My Group","remark":"..."}' # groupName required
112
- ads update-group '{"groupId":"1","groupName":"New Name"}' # groupId + groupName required; remark? (null to clear)
113
- ads get-group-list '{}' # groupName?, size?, page?
111
+ ads create-group '{"group_name":"My Group","remark":"..."}' # group_name required
112
+ ads update-group '{"group_id":"1","group_name":"New Name"}' # group_id + group_name required; remark? (null to clear)
113
+ ads get-group-list '{}' # group_name?, page_size?, page?
114
114
  ```
115
115
 
116
116
  ### Application (categories)
117
117
 
118
118
  ```bash
119
119
  ads check-status # No params – API availability
120
- ads get-application-list '{}' # category_id?, page?, limit?
120
+ ads get-application-list '{"category_id":"123","page":1,"limit":20}'
121
121
  ```
122
122
 
123
123
  ### Proxy
124
124
 
125
125
  ```bash
126
- ads create-proxy '{"proxies":[{"type":"http","host":"127.0.0.1","port":"8080"}]}' # type, host, port required per item
127
- ads update-proxy '{"proxyId":"...","host":"..."}' # proxyId required
128
- ads get-proxy-list '{}' # limit?, page?, proxyId?
129
- ads delete-proxy '{"proxyIds":["..."]}' # proxyIds required, max 100
126
+ ads create-proxy '[{"type":"http","host":"127.0.0.1","port":"8080"}]' # top-level array; type, host, port required per item
127
+ ads update-proxy '{"proxy_id":"proxy-1","proxy_url":"https://refresh.example.com"}'
128
+ ads get-proxy-list '{}' # limit?, page?, proxy_id[]?
129
+ ads delete-proxy '{"proxy_id":["..."]}' # proxy_id required, max 100
130
130
  ```
131
131
 
132
132
  ### Tag