jun 15, 202011:40 AM - editado jun 15, 202012:01 PM
Miembro
AJAX GET example
resolver
Can someone please provide an example of an AJAX GET request using a HubDB? Please let me know if it is possible to access the a HubDB table via AJAX or if I need to upload my table on an external SQL host.
I'm receiving the following console error when using the code found at the bottom:
jquery-3.4.1.min.js:formatted:3879 GET https://{{my_website}}/hubdb/api/v2/tables/:{{HubDB_TableID}}/rows 404
send @ jquery-3.4.1.min.js:formatted:2
ajax @ jquery-3.4.1.min.js:formatted:2
(anonymous) @ module_30654825430_RFQ_DropDownFilterTable_copy.min.js:1
dispatch @ jquery-3.4.1.min.js:formatted:2
v.handle @ jquery-3.4.1.min.js:formatted:2
ListPicker._handleMouseUp
DevTools failed to load SourceMap: Could not parse content for https://app.hubspot.com/content/editor/prefetcher.js.map: Unexpected token ! in JSON at position 0
$.ajax({
url: "https://api.hubapi.com/hubdb/api/v2/tables/:{{HubDB_TableID}}/rows",
success: function (xml) {
console.log('success');
}
});