We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0ad54 commit bdedc7eCopy full SHA for bdedc7e
src/session/extra.lua
@@ -1,3 +1,15 @@
1
PublicSession.get_session_id = function(public, private)
2
return private.session_id
3
+end
4
+
5
+PublicSession.accept_alert = function(public, private)
6
+ local result = private.fetch({
7
+ url = private.url .. "/session/" .. private.session_id .. "/alert/accept",
8
+ method = "POST",
9
+ http_version = "1.1"
10
+ })
11
12
+ if result.status_code ~= 200 then
13
+ error("Failed to accept alert: " .. result.read_body())
14
+ end
15
end
0 commit comments