Search Application Token Account
1 min
code examples curl request post \\ \ url http //localhost/aioc rest web/rest/aapm/searchaapmaccounts \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x xsrf token {{x xsrf token}}' \\ \ data '"{\r\n \\"applicationname\\" \\"\\"\r\n}"'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x xsrf token", "{{x xsrf token}}"); var raw = json stringify("{\r\n \\"applicationname\\" \\"\\"\r\n}"); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("http //localhost/aioc rest web/rest/aapm/searchaapmaccounts", 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("http //localhost/aioc rest web/rest/aapm/searchaapmaccounts") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x xsrf token"] = "{{x xsrf token}}" request body = json dump("{\r\n \\"applicationname\\" \\"\\"\r\n}") response = http request(request) puts response read body import requests import json url = "http //localhost/aioc rest web/rest/aapm/searchaapmaccounts" payload = json dumps("{\r\n \\"applicationname\\" \\"\\"\r\n}") headers = { 'accept' 'application/json', 'content type' 'application/json', 'x xsrf token' '{{x xsrf token}}' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses