adspower-client 1.0.20 → 1.0.22
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 +5 -1
- 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: 3b3bd348074bcc87b67457b354b06ac9293de7f012768c29b28ecafd2e5d2f16
|
|
4
|
+
data.tar.gz: b433cbccab25eee297ebf0df0f041c01c94950089c0fa5d20e65a13d5daa0de2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8c2ec3ff740d844ef4bff822b468ec29203e2df0ada3751bafcca2ae9f354096a3b6a67cc856bdaef3ee088d2ef98f9eec793b8a71e35fc3af57163893c6b2f
|
|
7
|
+
data.tar.gz: 8917f3c39ff8af4662f667fc3bcd76c6b521fbe881c4b113b4efc8a0cfedc0ab0b42e583c04efe9f02d436abfb4365abebcf25cae2c28bfd8951a888d46ec500
|
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.22'
|
|
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,6 +312,7 @@ 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',
|
|
@@ -357,8 +358,11 @@ class AdsPowerClient
|
|
|
357
358
|
lang = COUNTRY_LANG[geo[:country_code]] || "en-US"
|
|
358
359
|
screen_res = "1920_1080"
|
|
359
360
|
|
|
361
|
+
the_url = "#{adspower_listener}:#{port}/api/#{api_version}/browser-profile/create"
|
|
362
|
+
the_url = "#{adspower_listener}:#{port}/api/#{api_version}/user/create" if api_version == 'v1'
|
|
363
|
+
|
|
360
364
|
with_lock do
|
|
361
|
-
url =
|
|
365
|
+
url = the_url
|
|
362
366
|
body = {
|
|
363
367
|
# ─── GENERAL & PROXY ─────────────────────────────
|
|
364
368
|
'name' => name,
|
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.22
|
|
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
|