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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c91e849c43700d337b826208f705deef1bb3ec6e493ac872cd7d838afc67859
4
- data.tar.gz: 176aefa58b9bd965fcbab16b7714dec6ac5cf3a8e0cad23b759248ae82b6fbd3
3
+ metadata.gz: a624f4602e357b2391e458714fe7f106e292660bd074f6b2535fbc4373ee5b81
4
+ data.tar.gz: 11ec52c0e3576644d188520dc5b551c96454ad741a907d2ae348c9b1f2975c38
5
5
  SHA512:
6
- metadata.gz: 564d87a5328385d750e0734363a7dae2a20e56469801b4042818deb6c6f81468cdf0172d80bc47b09a432fb03b0834147771f11c6b939e10544b3d73952b450c
7
- data.tar.gz: 4aa7af6322c6489d26733ff50117e3341d50fe68ecdba7846642149cbccb2874619483aa4a5bf0debacbb4d2ed93d2b5ca9eaf5507ca57afa755190c6dda2724
6
+ metadata.gz: 8e0a6ff158c633fbc1d12fc86a7701e01df4a1a97205e4d4f7913365106b4554482184b3fe5e32fe49eca929ddbd46bfb726f8ad7f7b6003b31afd56c239d86e
7
+ data.tar.gz: 655ac226ffd9fd32971bff1db256a184760bb061fc8cd28851bbc52f89a0ac3865823d82c6a585e5b9a94f8c0c7c13a89ed2ab41b53de74719901b87a780db8d
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'adspower-client'
3
- s.version = '1.0.19'
4
- s.date = '2025-11-03'
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"]
@@ -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',# new: one of linux64, mac-x64, mac-arm64, win32, win64
320
+ os: 'linux64', # new: one of linux64, mac-x64, mac-arm64, win32, win64
320
321
  fingerprint: nil,
321
- platform: '', # default: no platform
322
- tabs: [], # default: no tabs to open
323
- username: '', # default: no login
324
- password: '', # default: no 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/v2/browser-profile/create"
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.19
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: 2025-11-03 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri