testing ajax get request to get hubspot demo blogs
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 14:22:34 +0000 (10:22 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 14:22:34 +0000 (10:22 -0400)
js/app.js
js/custom/pageSetup.js

index 52f7bfd..004ffca 100644 (file)
--- 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);
+        }
+    });
 });
index bfb7b39..d3ed5a7 100644 (file)
@@ -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);
+        }
+    });
 });