0

I am using Ghost API to get the content from another website. I am using below mention code and it gives me a 403 Forbidden error.

function onSuccess(data) {
   var $result = $('#blog-posts');
   $.each(data.posts, function (i, post) {
     $result.append(
      '<li>' + post.title + '</li>'
     );
   });
}  

jQuery(document).ready(function () {
jQuery.get(
  ghost.url.api('posts', {
    limit: '3', 
    include: 'tags', 
    order: 'count.posts DESC'
  })
).done(onSuccess);
});
KenS
  • 30,202
  • 3
  • 34
  • 51
Dinesh
  • 343
  • 3
  • 11
  • This can't be anything to do with **Ghostscript**.... – KenS Nov 22 '16 at 07:52
  • Then how can I get content through Ghost API? – Dinesh Nov 22 '16 at 08:04
  • I don't know, because I know nothing about **Ghost** which is apparently a blogging platform, unlike **Ghostscript** which is a PostScript and PDF interpreter. My comment is to explain why I removed the Ghostscript tag. – KenS Nov 22 '16 at 09:04

0 Answers0