From: Anthony Talarico Date: Wed, 3 Aug 2016 14:22:34 +0000 (-0400) Subject: testing ajax get request to get hubspot demo blogs X-Git-Tag: v1.0.0^2~185 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b6b3eb28ef9c51a1026fd68ef6cbdbb0b97e151a;p=WP-Themes%2Fpetoskeyarea.git testing ajax get request to get hubspot demo blogs --- 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); + } + }); });