snapchat_api 0.1.4 → 0.1.5

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: 43c8269298615c2858d5ddcdc32484970aa6ba2a6fe1df256d8cb309e04ba16e
4
- data.tar.gz: f0131210e97ae51caaddf6c042b3575eb88d5c08e9c075e0b770b0cef0c6c144
3
+ metadata.gz: f835d1d5764f58f10ea61e25aa7bec86ba1ff18670ec3e62461968385d3e0c08
4
+ data.tar.gz: edc4635f63d1811a567a8e382c395b54fb5bc19d9a3e05344c4ed2a15bcad10b
5
5
  SHA512:
6
- metadata.gz: 3db8ca2e98368796ea19ca8554e538aaa47d3b827d78b66bad841b74d1bbafdba30c1574d3bd51a3b317936a790f37685fd270f6d40af378795d412438e286f9
7
- data.tar.gz: 976a5ffd1d911639c0859db349dc4aadcc239dc230921fd0145bfaa2e545f0e4652d739f519f6d2e2ad332dbf73a633d273fecddc744f304cdb66c5a824a3247
6
+ metadata.gz: a50dcef0a90a743017da6405e26fbc4f46b551d50e7012aed4ecd7c40efe5eefcd77ee0c31193ade4d8aaab1921d753051589a68891def9a6bbc7c6a986a042d
7
+ data.tar.gz: b7d88ee3f394e8d0e869b7a28691fe94a2fe92414147fde541e2a1a100a02bdc6475b2f0d13804c77a34562337542d3b2c80cd337e118a910204c0c79670e82e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.5](https://github.com/k0va1/snapchat_api/compare/v0.1.4...v0.1.5) (2025-08-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * add #preview and #thumnail methods to media resource ([66b9b12](https://github.com/k0va1/snapchat_api/commit/66b9b120e869685d8a05dc89fbf6e7b903e2d669))
9
+
3
10
  ## [0.1.4](https://github.com/k0va1/snapchat_api/compare/v0.1.3...v0.1.4) (2025-07-29)
4
11
 
5
12
 
@@ -44,6 +44,16 @@ module SnapchatApi
44
44
  response = client.request(:post, "media/#{media_id}/upload", upload_params, {"Content-Type" => "multipart/form-data"})
45
45
  response.body["result"]
46
46
  end
47
+
48
+ def preview(media_id:)
49
+ response = client.request(:get, "media/#{media_id}/preview")
50
+ response.body
51
+ end
52
+
53
+ def thumbnail(media_id:)
54
+ response = client.request(:get, "media/#{media_id}/thumbnail")
55
+ response.body
56
+ end
47
57
  end
48
58
  end
49
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapchatApi
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapchat_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Koval