Question

I have completed a GET request and have the info I need. I just need help parsing this onto my site.

Any help would be really appreciated as I've been on this for about 3 days now :(

I have used the following to GET my blog posts from blogger:

var xhr = new XMLHttpRequest();

xhr.open("GET","https://www.googleapis.com/blogger/v3/blogs/1731759086281795196/
posts/?key=[MY API KEY HERE]", false);

xhr.send();

The console is showing this request is successful.

status = 20
statustext = OK

Now I need to take the "title", "content" & "published" date (as shown in the JSON response) and parse this onto my site.

Any ideas of how this is done? This is probably for someone that has worked with the Blogger API or similar blog API's in the past.

Was it helpful?

Solution

Abandoned question up using simplexml_load_file to load the publc feed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top