snapchat_api 0.1.9 → 0.1.10

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: 11163e5d9e5cfc8a292c23a4488c3fdde63f8e18731811798f56fbe510dddb37
4
- data.tar.gz: '08f18ffb5bdf15fcf5eca32592b3433109668c1840a7ce4fe6dd51080c75f935'
3
+ metadata.gz: db68d0694187c2ae8aab9d46e2ac1b1b5e39c64d96fadc7b0e28747a79e4bafa
4
+ data.tar.gz: 87a1a7a8b1232b9ab3656a842f746ebc4894be3aabaf6c98a30ac5c29589bb86
5
5
  SHA512:
6
- metadata.gz: c5bd570f4f88237923574b48d482b04c02ad6de20b9fe0b4e27b3d948670acde41bc67be35818352bf77c3808bb3a05d4ae91fe2bdb33d6e3b155afde15c7fb3
7
- data.tar.gz: 1086b6865f4200b90214faab067145ea182504622862478779fad366926908ddb689474527de7132002a41f212699e5da92979582f588f5f19ecd42d5adfd536
6
+ metadata.gz: 1a42c22751da6b4892ec0c3c3c5427d49b26b8dcfd8781adef49a80d6a027512cff1d4131cb615037eee7d29fa112fd16a5eb9984e2b5902084caed5b44bce46
7
+ data.tar.gz: 84f68509d0d2e2536b00fd65ddac4bd44a74aa497ad92fb14e2e09a7e64caa6832ff121909bb3ee44177866381bb7d592ae70af73aeba671589310ad782d6e75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.10](https://github.com/k0va1/snapchat_api/compare/v0.1.9...v0.1.10) (2026-07-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * apply access token per request so token refresh takes effect ([#18](https://github.com/k0va1/snapchat_api/issues/18)) ([247e320](https://github.com/k0va1/snapchat_api/commit/247e32006ef293882c232ab2104d55c4b1f17a79))
9
+
3
10
  ## [0.1.9](https://github.com/k0va1/snapchat_api/compare/v0.1.8...v0.1.9) (2026-07-27)
4
11
 
5
12
 
@@ -25,7 +25,6 @@ module SnapchatApi
25
25
 
26
26
  def connection
27
27
  @connection ||= Faraday.new(url: ADS_URL) do |conn|
28
- conn.headers["Authorization"] = "Bearer #{@access_token}"
29
28
  conn.headers["Content-Type"] = "application/json"
30
29
 
31
30
  conn.options.timeout = 60
@@ -45,6 +44,8 @@ module SnapchatApi
45
44
 
46
45
  def request(method, path, params = {}, headers = {})
47
46
  response = connection.run_request(method, path, nil, headers) do |req|
47
+ req.headers["Authorization"] = "Bearer #{@access_token}"
48
+
48
49
  case method
49
50
  when :get, :delete
50
51
  req.params = params
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapchatApi
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Koval