[[apiTitle]]
[[version]]
[[providerName]][[providerEmail]]
| [[item]] |
|---|
Headers are not required by this endpoint
No description provided
[[method]] [[path]] HTTP/1.1Host: [[hostValue]]:[[port]][[item.name]]: [[item.value]][[payload]] curl -i -X [[method]] \-d "[[payload]]" \-H "[[item.name]]: [[item.value]]" \[[url]] var xhr = new XMLHttpRequest();xhr.addEventListener('load', function(e) {var response = e.target.responseText;});xhr.addEventListener('error', function(e) {var message = e.message;});xhr.open('[[method]]', '[[url]]');xhr.setRequestHeader('[[item.name]]', '[[item.value]]');var body = '';body += '[[item]]\n';xhr.send(body);xhr.send(); let headers = new Headers();headers.append('[[item.name]]', '[[item.value]]');let body = `[[payload]]`;let init = {method: '[[method]]',headers: headers,body: body};fetch('[[url]]', init).then((response) => {return response.text(); // or .json() or .blob() ...}).then((text) => {// text is the response body}).catch((e) => {// error in e.message}); const http = require('http');let body = `[[payload]]`;let init = {host: '[[hostValue]]',path: '[[path]]',port: '[[port]]',method: '[[method]]',headers: {'[[item.name]]': '[[item.value]]',},};const callback = function(response) {var str = '';response.on('data', function(chunk) {str += chunk;});response.on('end', function() {// str has response body});};const req = http.request(init, callback);req.write(body);req.end(); import requestsurl = '[[url]]'headers = {'[[item.name]]': '[[item.value]]',}body = """[[payload]]"""req = requests.[[lowerMethod]](url, headers=headers, data=body)print(req.status_code)print(req.headers)print(req.text) import httplibheaders = {'[[item.name]]': '[[item.value]]',}body = """[[payload]]"""conn = httplib.HTTPSConnection('[[hostValue]]')conn.request('[[method]]', '[[path]]', body, headers)res = conn.getresponse()print(res.status, res.reason)print(res.read())print(res.getheaders()) import http.clientheaders = {'[[item.name]]': '[[item.value]]',}body = """[[payload]]"""conn = http.client.HTTPSConnection('[[hostValue]]')conn.request('[[method]]', '[[path]]', body, headers)res = conn.getresponse()data = res.read()print(res.status, res.reason)print(data.decode('utf-8'))print(res.getheaders()) #include <stdio.h>#include <curl/curl.h>int main(void ){CURL *curl;CURLcode res;curl = curl_easy_init();curl_easy_setopt(curl, CURLOPT_URL, "[[url]]");curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "[[method]]");/* if redirected, tell libcurl to follow redirection */curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);struct curl_slist *headers = NULL;headers = curl_slist_append(headers, "[[item.name]]: [[item.value]]");curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);char *body = "[[item]]\
[[item]]\[[item]]";curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);/* Perform the request, res will get the return code */res = curl_easy_perform(curl);if(res != CURLE_OK) {fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));}/* Clean up after yourself */curl_easy_cleanup(curl);return 0;}/* See: http://stackoverflow.com/a/2329792/1127848 of how to read data from the response. */ URL url = new URL("[[url]]");HttpURLConnection con = (HttpURLConnection) url.openConnection();con.setRequestMethod("[[method]]");con.setRequestProperty("[[item.name]]", "[[item.value]]");con.setDoOutput(true);DataOutputStream out = new DataOutputStream(con.getOutputStream());out.writeBytes("[[item]]\n");out.flush();out.close();int status = con.getResponseCode();BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));String inputLine;StringBuffer content = new StringBuffer();while ((inputLine = in.readLine()) != null) {content.append(inputLine);}in.close();con.disconnect();System.out.println("Response status: " + status);System.out.println(content.toString()); RestTemplate rest = new RestTemplate();HttpHeaders headers = new HttpHeaders();headers.add("[[item.name]]", "[[item.value]]");String body = "";StringBuilder sb = new StringBuilder();sb.append("[[item]]\n");body = sb.toString();HttpEntity<String> requestEntity = new HttpEntity<String>(body, headers);ResponseEntity<String> responseEntity = rest.exchange("[[url]]", HttpMethod.[[method]], requestEntity, String.class);int status = responseEntity.getStatusCode();String response = responseEntity.getBody();System.out.println("Response status: " + status);System.out.println(response);[[accessTokenUri]][[authorizationUri]][[requestTokenUri]][[authorizationUri]][[tokenCredentialsUri]][[accessToken]]
Authorization method for current endpoint is not supported.
Headers are not defined for this endpoint
Media type: [[contentType]]
[[message]]
There is no redirects information to display
Error in the response.
Nothing to display here
Nothing to display here
Nothing to dispplay.
There was an error parsing XML data
[[errorMessage]]
There was an error parsing JSON data
Nothing to dispplay.
Your file is now ready to download.
This response does not carry a payload.
[[item.desc]]
This enpoint doesn't have HTTP methods defined in the API specification file.