streambird 1.0.2 → 1.0.3
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/streambird/api/session.rb +10 -0
- data/streambird-ruby.gemspec +1 -1
- 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: 720b4f781b0838ba09196ec938b8a8ac7a2bb7c39e7b73108396106a1f31c11a
|
|
4
|
+
data.tar.gz: a0b173ce3e09f2ea56df72b0e06809e5729759baa0b56e87d525ca31a9a6946b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5abcaa06bd46991fe141db259b699d40b74ddac2c32fe13e3bb9955f00c55bb62fafa93fd69405919b43a28d8c6779418e613984bc9aa8f03501d2415c6c2223
|
|
7
|
+
data.tar.gz: ddfd888e267193a734801125437c41cf7369d3fce5d0f01f266fc92406fd724269cbbc727a5b9943365ebc7cf492e4f2b98cd52e7c5a59bd598c1ab8e7b51ffd
|
|
@@ -24,6 +24,16 @@ class Streambird
|
|
|
24
24
|
json_body = JSON.parse(response.body, symbolize_names: true)
|
|
25
25
|
return json_body
|
|
26
26
|
end
|
|
27
|
+
|
|
28
|
+
def delete(session_token: nil, session_id: nil)
|
|
29
|
+
req = {}
|
|
30
|
+
|
|
31
|
+
req['session_token'] = session_token if !session_token.nil?
|
|
32
|
+
req['session_id'] = session_id if !session_id.nil?
|
|
33
|
+
response = client.delete('auth/sessions/delete', req)
|
|
34
|
+
json_body = JSON.parse(response.body, symbolize_names: true)
|
|
35
|
+
return json_body
|
|
36
|
+
end
|
|
27
37
|
end
|
|
28
38
|
end
|
|
29
39
|
end
|
data/streambird-ruby.gemspec
CHANGED