Get Session Replies
curl --request GET \
--url https://api.funnelfox.io/public/v1/sessions/{session_id}/replies \
--header 'Fox-Secret: <fox-secret>'import requests
url = "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies"
headers = {"Fox-Secret": "<fox-secret>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Fox-Secret': '<fox-secret>'}};
fetch('https://api.funnelfox.io/public/v1/sessions/{session_id}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Fox-Secret: <fox-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Fox-Secret", "<fox-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.funnelfox.io/public/v1/sessions/{session_id}/replies")
.header("Fox-Secret", "<fox-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.funnelfox.io/public/v1/sessions/{session_id}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Fox-Secret"] = '<fox-secret>'
response = http.request(request)
puts response.read_body[
{
"element": {
"id": "<string>",
"type": "<string>",
"custom_id": "<string>"
},
"screen": {
"id": "<string>",
"index": 123,
"custom_id": "<string>"
},
"state": {
"value": "<string>",
"raw": "<unknown>"
}
}
]{
"message": "<string>"
}API Reference
Get Session Replies
GET
/
sessions
/
{session_id}
/
replies
Get Session Replies
curl --request GET \
--url https://api.funnelfox.io/public/v1/sessions/{session_id}/replies \
--header 'Fox-Secret: <fox-secret>'import requests
url = "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies"
headers = {"Fox-Secret": "<fox-secret>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Fox-Secret': '<fox-secret>'}};
fetch('https://api.funnelfox.io/public/v1/sessions/{session_id}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Fox-Secret: <fox-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.funnelfox.io/public/v1/sessions/{session_id}/replies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Fox-Secret", "<fox-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.funnelfox.io/public/v1/sessions/{session_id}/replies")
.header("Fox-Secret", "<fox-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.funnelfox.io/public/v1/sessions/{session_id}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Fox-Secret"] = '<fox-secret>'
response = http.request(request)
puts response.read_body[
{
"element": {
"id": "<string>",
"type": "<string>",
"custom_id": "<string>"
},
"screen": {
"id": "<string>",
"index": 123,
"custom_id": "<string>"
},
"state": {
"value": "<string>",
"raw": "<unknown>"
}
}
]{
"message": "<string>"
}Was this page helpful?
⌘I
