From b6b3eb28ef9c51a1026fd68ef6cbdbb0b97e151a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 3 Aug 2016 10:22:34 -0400 Subject: [PATCH] testing ajax get request to get hubspot demo blogs --- js/app.js | 10 ++++++++++ js/custom/pageSetup.js | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/js/app.js b/js/app.js index 52f7bfd..004ffca 100644 --- a/js/app.js +++ b/js/app.js @@ -197,4 +197,14 @@ $(document).ready(function () { $(window).resize(function () { check_window_width(); }); + + var url = "https://api.hubapi.com/content/api/v2/blogs?hapikey=demo"; + + $.ajax({ + url: url, + type: 'GET', + success: function (data) { + console.log(data); + } + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index bfb7b39..d3ed5a7 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -188,4 +188,14 @@ $(document).ready(function () { $(window).resize(function () { check_window_width(); }); + + var url = "https://api.hubapi.com/content/api/v2/blogs?hapikey=demo"; + + $.ajax({ + url: url, + type: 'GET', + success: function (data) { + console.log(data); + } + }); }); -- 2.17.1