rcs 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rcs/send/client.rb +2 -4
- data/lib/requests.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54823c553a438bf89b954065743e15829ebf1db01eeb65ebe13f33cf30fe0fc4
|
4
|
+
data.tar.gz: d94b27635af230d827fab19c712e43ad64f764425f0b40de32e15a6cf04f80e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127be8e67306a2993e1285ff5df2ca04ad4765697e4a8ccc569ccd902168fad40e4fba41bca80fc92821b00d58a098957d1d37790694a50862da39f8483e9add
|
7
|
+
data.tar.gz: f119fc63551bf7909de5368c21be3ca59f3dd934c3e764b02113d0dea90dccb026458f1cdaa9723fa55352e9036a2839d004535ff3b3f56c371fdef28b388c29
|
data/lib/rcs/send/client.rb
CHANGED
@@ -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:,
|
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:,
|
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.
|
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.
|
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.
|
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-
|
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
|