iR Engine API
entri-auth
/entri-auth
1 min
code examples curl location '/entri auth' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{"body" {"applicationid" "string","jwt" "string"}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "applicationid" "string", "jwt" "string" } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/entri auth", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/entri auth") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "body" { "applicationid" "string", "jwt" "string" } }) response = http request(request) puts response read body import requests import json url = "/entri auth" payload = json dumps({ "body" { "applicationid" "string", "jwt" "string" } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // created { "applicationid" "", "jwt" "" }// not authenticated // general error