https://xeno.app/rest/v2/widgets/[api_key]/contacts/[id]
Authorization: Bearer TOKEN
Content-Type: application/json
Body:
{
"email": "[email protected]"
}
require "uri"
require "net/http"
url = URI("https://xeno.app/rest/v2/widgets/[api_key]/contacts/[id]")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"
request.body = '{"email": "[email protected]"}'
response = https.request(request)
puts response.read_body