GET https://:account.api-us1.com/api/3/templates/id
- cURL
curl --request GET \
--url https:///:account.api-us1.com/api/3/templates/id
- Node
var request = require("request");
var options = { method: 'GET',
url: 'https:///:account.api-us1.com/api/3/templates/id' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
- Ruby
require 'uri'
require 'net/http'
url = URI("https:///:account.api-us1.com/api/3/templates/id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
- JavaScript
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https:///:account.api-us1.com/api/3/templates/id");
xhr.send(data);
- Python
import requests
url = "https:///:account.api-us1.com/api/3/templates/id"
response = requests.request("GET", url)
print(response.text)
200 OK
{
"template": {
"userid": "1",
"ed_instanceid": "0",
"ed_version": "0",
"name": "Test 2",
"subject": null,
"content": "sdsf",
"categoryid": "1",
"used": "1",
"waitpreview": "1",
"importnum": "0",
"mdate": "2018-08-28 11:54:54",
"preview_content": null,
"modified": "1",
"hidden": "0",
"links": [],
"id": "2"
}
}
PATH PARAMS
id REQUIRED
int32 ID of the template to retrieve
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.