rcs 1.0.13 → 1.0.14
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 +4 -4
- data/lib/rcs/types/action.rb +2 -2
- data/lib/rcs/types/action_type.rb +2 -2
- data/lib/requests.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c64d425bcacc2baf86894e594e3e03d7227f5c7221ad06c944a90138011d5fe
|
4
|
+
data.tar.gz: c3f8a91fdfacd860df015784ec8d51af1c91c0913f68cffc12a9f064614215bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f8276cace3809d5a71d693115c584a68261e36970e46365124d6690d6aecdcbfff0cf67ecf661da9f3d82fc8ade6237e3b173bcf85a367453ed30167f75287
|
7
|
+
data.tar.gz: e9f306e9917eaa8afd72388d7a0a46e83eced1d1e7da446a20ea9c4289c25a1e5fd1a2e78cb829b96a7ccdc77ad028f5a676201470b804960ea7d6c4a7508200
|
data/lib/rcs/types/action.rb
CHANGED
@@ -11,7 +11,7 @@ module Pinnacle
|
|
11
11
|
attr_reader :title
|
12
12
|
# @return [Pinnacle::ActionType] Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
|
13
13
|
# number, 'trigger' sends the predefined payload to the webhook when pressed,
|
14
|
-
# '
|
14
|
+
# 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
|
15
15
|
# calendar event, 'sendLocation' sends a location.
|
16
16
|
attr_reader :type
|
17
17
|
# @return [String] Optional payload associated with the action. This payload encodes the respective
|
@@ -46,7 +46,7 @@ module Pinnacle
|
|
46
46
|
# @param title [String] Title of the action (must be less than 25 characters).
|
47
47
|
# @param type [Pinnacle::ActionType] Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
|
48
48
|
# number, 'trigger' sends the predefined payload to the webhook when pressed,
|
49
|
-
# '
|
49
|
+
# 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
|
50
50
|
# calendar event, 'sendLocation' sends a location.
|
51
51
|
# @param payload [String] Optional payload associated with the action. This payload encodes the respective
|
52
52
|
# fields for the action type and is required. For 'openUrl', the payload is the
|
@@ -3,13 +3,13 @@
|
|
3
3
|
module Pinnacle
|
4
4
|
# Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
|
5
5
|
# number, 'trigger' sends the predefined payload to the webhook when pressed,
|
6
|
-
# '
|
6
|
+
# 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
|
7
7
|
# calendar event, 'sendLocation' sends a location.
|
8
8
|
class ActionType
|
9
9
|
OPEN_URL = "openUrl"
|
10
10
|
CALL = "call"
|
11
11
|
TRIGGER = "trigger"
|
12
|
-
|
12
|
+
REQUEST_USER_LOCATION = "requestUserLocation"
|
13
13
|
SCHEDULE_EVENT = "scheduleEvent"
|
14
14
|
SEND_LOCATION = "sendLocation"
|
15
15
|
end
|
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.14" }
|
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.14" }
|
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
|