vk_api_simple 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vk_api_simple/market/add.rb +1 -1
- data/lib/vk_api_simple/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d84ddd05a8e21a9d8a039be2a210be22f489101b6bcf648922717a713c8e1833
|
4
|
+
data.tar.gz: ef1f9173250f64a686fe1550fe39bde8c06b799c38e5d1f88bde506954d3777a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 755dfc81de1c399793d747811c8b83ba749eab4c1131674ab65f6db0768c8d17de35c3077f9fc16fd80dfbbcfeea9bfb86f7675a8eef55176039ebb82cac4b96
|
7
|
+
data.tar.gz: 572ce603e561aecf3ec4785f0162868c871e98f4e733f838e7aef50a41019695203a27cedf1fff488ec6482ddf7138feda77d48038b83469331015a198c62a56
|
@@ -3,7 +3,7 @@ module VkApiSimple
|
|
3
3
|
# Save uploaded image at server
|
4
4
|
module Add
|
5
5
|
def add(args = {})
|
6
|
-
response = RestClient.post("#{BASE_URI}
|
6
|
+
response = RestClient.post("#{BASE_URI}add?access_token=#{token}&owner_id=-#{args[:owner_id]}&category_id=#{args[:category_id]}&price=#{args[:price]}&main_photo_id=#{args[:main_photo_id]}&v=#{api_version}", name: args[:name], description: args[:description])
|
7
7
|
JSON.parse(response.body)
|
8
8
|
end
|
9
9
|
end
|