iR Engine API
oembed
/oembed
1 min
code examples curl location globoff '/oembed?filter={%22version%22%3a%22string%22%2c%22type%22%3a%22string%22%2c%22title%22%3a%22string%22%2c%22description%22%3a%22string%22%2c%22provider name%22%3a%22string%22%2c%22provider url%22%3a%22string%22%2c%22thumbnail url%22%3a%22string%22%2c%22thumbnail width%22%3a0%2c%22thumbnail height%22%3a0%2c%22query url%22%3a%22string%22}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/oembed?filter={\\"version\\" \\"string\\",\\"type\\" \\"string\\",\\"title\\" \\"string\\",\\"description\\" \\"string\\",\\"provider name\\" \\"string\\",\\"provider url\\" \\"string\\",\\"thumbnail url\\" \\"string\\",\\"thumbnail width\\" 0,\\"thumbnail height\\" 0,\\"query url\\" \\"string\\"}", 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("/oembed?filter={\\"version\\" \\"string\\",\\"type\\" \\"string\\",\\"title\\" \\"string\\",\\"description\\" \\"string\\",\\"provider name\\" \\"string\\",\\"provider url\\" \\"string\\",\\"thumbnail url\\" \\"string\\",\\"thumbnail width\\" 0,\\"thumbnail height\\" 0,\\"query url\\" \\"string\\"}") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/oembed?filter={\\"version\\" \\"string\\",\\"type\\" \\"string\\",\\"title\\" \\"string\\",\\"description\\" \\"string\\",\\"provider name\\" \\"string\\",\\"provider url\\" \\"string\\",\\"thumbnail url\\" \\"string\\",\\"thumbnail width\\" 0,\\"thumbnail height\\" 0,\\"query url\\" \\"string\\"}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // success \[ { "version" "", "type" "", "title" "", "description" "", "provider name" "", "provider url" "", "thumbnail url" "", "thumbnail width" 0, "thumbnail height" 0, "query url" "", "url" "", "height" 0, "width" 0 } ]// not authenticated // general error