adspower-client 1.0.19 → 1.0.21
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.
- checksums.yaml +4 -4
- data/adspower-client.gemspec +2 -2
- data/lib/adspower-client.rb +10 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a624f4602e357b2391e458714fe7f106e292660bd074f6b2535fbc4373ee5b81
|
|
4
|
+
data.tar.gz: 11ec52c0e3576644d188520dc5b551c96454ad741a907d2ae348c9b1f2975c38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e0a6ff158c633fbc1d12fc86a7701e01df4a1a97205e4d4f7913365106b4554482184b3fe5e32fe49eca929ddbd46bfb726f8ad7f7b6003b31afd56c239d86e
|
|
7
|
+
data.tar.gz: 655ac226ffd9fd32971bff1db256a184760bb061fc8cd28851bbc52f89a0ac3865823d82c6a585e5b9a94f8c0c7c13a89ed2ab41b53de74719901b87a780db8d
|
data/adspower-client.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'adspower-client'
|
|
3
|
-
s.version = '1.0.
|
|
4
|
-
s.date = '
|
|
3
|
+
s.version = '1.0.21'
|
|
4
|
+
s.date = '2026-03-25'
|
|
5
5
|
s.summary = "Ruby library for operating AdsPower API."
|
|
6
6
|
s.description = "Ruby library for operating AdsPower API."
|
|
7
7
|
s.authors = ["Leandro Daniel Sardi"]
|
data/lib/adspower-client.rb
CHANGED
|
@@ -312,17 +312,19 @@ class AdsPowerClient
|
|
|
312
312
|
# @param fakey [String,nil] optional 2FA key
|
|
313
313
|
# @return String the new profile’s ID
|
|
314
314
|
def create2(
|
|
315
|
+
api_version: 'v2',
|
|
315
316
|
name:,
|
|
316
317
|
proxy_config:,
|
|
317
318
|
group_id: '0',
|
|
318
319
|
browser_version: nil,
|
|
319
|
-
os: 'linux64'
|
|
320
|
+
os: 'linux64', # new: one of linux64, mac-x64, mac-arm64, win32, win64
|
|
320
321
|
fingerprint: nil,
|
|
321
|
-
platform: '',
|
|
322
|
-
tabs: [],
|
|
323
|
-
username: '',
|
|
324
|
-
password: '',
|
|
325
|
-
fakey: '' # leave blank if no 2FA
|
|
322
|
+
platform: '', # default: no platform
|
|
323
|
+
tabs: [], # default: no tabs to open
|
|
324
|
+
username: '', # default: no login
|
|
325
|
+
password: '', # default: no password
|
|
326
|
+
fakey: '', # leave blank if no 2FA
|
|
327
|
+
cookie: nil # import cookies - Type: Text - Format: JSON - username/password are ignored if cookie is not nil.
|
|
326
328
|
)
|
|
327
329
|
browser_version ||= adspower_default_browser_version
|
|
328
330
|
|
|
@@ -357,7 +359,7 @@ class AdsPowerClient
|
|
|
357
359
|
screen_res = "1920_1080"
|
|
358
360
|
|
|
359
361
|
with_lock do
|
|
360
|
-
url = "#{adspower_listener}:#{port}/api/
|
|
362
|
+
url = "#{adspower_listener}:#{port}/api/#{api_version}/browser-profile/create"
|
|
361
363
|
body = {
|
|
362
364
|
# ─── GENERAL & PROXY ─────────────────────────────
|
|
363
365
|
'name' => name,
|
|
@@ -382,6 +384,7 @@ class AdsPowerClient
|
|
|
382
384
|
'username' => username,
|
|
383
385
|
'password' => password,
|
|
384
386
|
'fakey' => fakey, # 2FA, if any
|
|
387
|
+
'cookie' => cookie,
|
|
385
388
|
|
|
386
389
|
# ─── FINGERPRINT ──────────────────────────────────
|
|
387
390
|
"fingerprint_config" => fingerprint || {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adspower-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leandro Daniel Sardi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: uri
|