rcs 1.0.10 → 1.0.11

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: f65329659fa99fc103cbac99eca161f7703560a665a9e8c2a60c7ccc6555e074
4
- data.tar.gz: d81483384221c609fa37dad833cb683d2c8fc3d516a08024f87cb3c922eeaf1d
3
+ metadata.gz: 54823c553a438bf89b954065743e15829ebf1db01eeb65ebe13f33cf30fe0fc4
4
+ data.tar.gz: d94b27635af230d827fab19c712e43ad64f764425f0b40de32e15a6cf04f80e4
5
5
  SHA512:
6
- metadata.gz: fb28d812c14f45fed3c74e32e0e6177fd939b1b94e3fc2941b43d3ad556fde1729ab9b41c66185c9f5ba8d2cc82706016a17b9c0bfae595544d0f339fca91a8e
7
- data.tar.gz: 42c5b7d35da195ab0b37031792e5badf9721d3b9ed69a67c3b1de9deb1bbecbfe1690a1f25ecccce8322f311994e0006406d7e3362e3cc0c047a32c0bc9e36eb
6
+ metadata.gz: 127be8e67306a2993e1285ff5df2ca04ad4765697e4a8ccc569ccd902168fad40e4fba41bca80fc92821b00d58a098957d1d37790694a50862da39f8483e9add
7
+ data.tar.gz: f119fc63551bf7909de5368c21be3ca59f3dd934c3e764b02113d0dea90dccb026458f1cdaa9723fa55352e9036a2839d004535ff3b3f56c371fdef28b388c29
@@ -144,10 +144,9 @@ module Pinnacle
144
144
  # api.send.mms(
145
145
  # to: "to",
146
146
  # from: "from",
147
- # text: "text",
148
147
  # media_urls: ["https://example.com/image1.jpg", "https://example.com/video.mp4"]
149
148
  # )
150
- def mms(to:, from:, text:, media_urls:, request_options: nil)
149
+ def mms(to:, from:, media_urls:, text: nil, request_options: nil)
151
150
  response = @request_client.conn.post do |req|
152
151
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
153
152
  req.headers["PINNACLE-API-Key"] = request_options.api_key unless request_options&.api_key.nil?
@@ -311,10 +310,9 @@ module Pinnacle
311
310
  # api.send.mms(
312
311
  # to: "to",
313
312
  # from: "from",
314
- # text: "text",
315
313
  # media_urls: ["https://example.com/image1.jpg", "https://example.com/video.mp4"]
316
314
  # )
317
- def mms(to:, from:, text:, media_urls:, request_options: nil)
315
+ def mms(to:, from:, media_urls:, text: nil, request_options: nil)
318
316
  Async do
319
317
  response = @request_client.conn.post do |req|
320
318
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module Pinnacle
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.10" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.11" }
47
47
  headers["PINNACLE-API-Key"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module Pinnacle
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.10" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.11" }
91
91
  headers["PINNACLE-API-Key"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
92
92
  headers
93
93
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-14 00:00:00.000000000 Z
11
+ date: 2024-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday