Oracle Content & Experience Cloud Service: API REST Example
The following example shows how to make a REST API call to get folder information from ann HTML page: <html> <head> function UserAction() { var xhttp = new XMLHttpRequest(); xhttp.open(“GET”, “https://docs-xxxxxx.documents.us2.oraclecloud.com//documents/api/1.1/folders/FDE2F2015454AB1596AF3404090B9CFF7042366FBD9C”, false); xhttp.setRequestHeader(“Accept”, “application/json, text/plain, */*”); xhttp.setRequestHeader(“Authorization”, “Basic ” + btoa(document.getElementById(‘u’).value + ‘:’ + document.getElementById(‘p’).value )); xhttp.send(); alert( document.getElementById(‘u’).value […]
More