Message History
Get Message History
Once you send a message, you can check the delivery details of the message using the Get Message History API
You would need the message id
to get the message's history
curl --request GET \
--url https://chat.zoko.io/v2/message/e202794d-15f6-487a-971b-5e2b6ea8a2a5/history \
--header 'accept: application/json' \
--header 'apikey: your-api-key-here'
const request = require('request');
const options = {
method: 'GET',
url: 'https://chat.zoko.io/v2/message/e202794d-15f6-487a-971b-5e2b6ea8a2a5/history',
headers: {accept: 'application/json', apikey: 'your-api-key-here'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
import requests
url = "https://chat.zoko.io/v2/message/e202794d-15f6-487a-971b-5e2b6ea8a2a5/history"
headers = {
"accept": "application/json",
"apikey": "your-api-key-here"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://chat.zoko.io/v2/message/e202794d-15f6-487a-971b-5e2b6ea8a2a5/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["apikey"] = 'your-api-key-here'
response = http.request(request)
puts response.read_body
Updated over 2 years ago