telnyx 5.8.1 → 5.8.2

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: 10aafd92d94d722782e4d4ba8d42dad95b6fc785c1aa646b0332a91c9c6922ad
4
- data.tar.gz: 67929e648cf7ade4b3883b205aa58bbee3f8914804fe26a5e2e21012e55b11a1
3
+ metadata.gz: 5c6abe3f36e6d4ecaec26f367084d4beeb440430a544f3c27bbb9ac34bbfb964
4
+ data.tar.gz: 510322b5b0759d267b1882c3036777bb3d4a2fa048c8bb0c7dffd0bd6e2ebb78
5
5
  SHA512:
6
- metadata.gz: a179eb2fe54a03e90477f7434e9256a8506d71637d08d2b558a3408953e7e20f38fa6b0b8d305e6a1b0e81a4098232a913dc6fbdd599f580025a593c3426ffa9
7
- data.tar.gz: 5f59c8f3e9e50ad8784c0744e5ecfda2688a183592977cfebe747af7a144d7e4198b8c1471ccd3b2d724fc4f559d17f223234c7afac467b0a4ade61b4c190690
6
+ metadata.gz: 49cb112e59ac86257e19c08734f19732456923c7656024b4a1d2a586db92468270227a75945b39f78d7ee5c8bb79b07d3277cd076d3811f26660f4dfe891ef5a
7
+ data.tar.gz: 726dfbf641336474e52fdb03d908a66964c99399fb1a28042d14a2a9b3efdf7f584078377fd4ab7c48c937542da69c0e2b4c7d2e3981ba32bd6601d8c6b89326
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.8.2 (2026-02-02)
4
+
5
+ Full Changelog: [v5.8.1...v5.8.2](https://github.com/team-telnyx/telnyx-ruby/compare/v5.8.1...v5.8.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client/oauth:** send grant_type in the right location ([9c80812](https://github.com/team-telnyx/telnyx-ruby/commit/9c80812de3e8cb0a1e0c22edf105e42a824669e6))
10
+
3
11
  ## 5.8.1 (2026-02-02)
4
12
 
5
13
  Full Changelog: [v5.8.0...v5.8.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.8.0...v5.8.1)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.8.1"
27
+ gem "telnyx", "~> 5.8.2"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
data/lib/telnyx/client.rb CHANGED
@@ -509,13 +509,7 @@ module Telnyx
509
509
  return {} unless @client_id && @client_secret
510
510
 
511
511
  path = Telnyx::Internal::Util.interpolate_path("https://api.telnyx.com/v2/oauth/token")
512
- token_url = Telnyx::Internal::Util.join_parsed_uri(
513
- @base_url_components,
514
- {
515
- path: path,
516
- query: {grant_type: "client_credentials"}
517
- }
518
- )
512
+ token_url = Telnyx::Internal::Util.join_parsed_uri(@base_url_components, {path: path})
519
513
 
520
514
  @oauth_client_auth_state = Telnyx::Internal::OAuth2ClientCredentials.new(
521
515
  token_url: token_url.to_s,
@@ -61,9 +61,10 @@ module Telnyx
61
61
  method: :post,
62
62
  url: URI(@token_url),
63
63
  headers: {
64
- "Authorization" => "Basic #{Base64.strict_encode64("#{@client_id}:#{@client_secret}")}"
64
+ "Authorization" => "Basic #{Base64.strict_encode64("#{@client_id}:#{@client_secret}")}",
65
+ "Content-Type" => "application/x-www-form-urlencoded"
65
66
  },
66
- body: nil,
67
+ body: "grant_type=client_credentials",
67
68
  max_retries: @client.max_retries,
68
69
  timeout: @timeout
69
70
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.8.1"
4
+ VERSION = "5.8.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.1
4
+ version: 5.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx