00:03:14 Zac Gordon: - JSON 00:03:24 Zac Gordon: - JSON Object (JSON.parse() etc) 00:03:34 Zac Gordon: - Local Storage 00:03:37 Zac Gordon: - HTTP 00:03:45 Zac Gordon: - XMLHTTPRequest 00:03:48 Zac Gordon: - Fetch 00:03:57 David Brooks: Please could you repeat the question 00:05:41 Zac Gordon: - Promises 00:07:27 David Brooks: Do we send this to you? 00:08:13 Zac Gordon: Make an HTTP request with one of the options covered above to a WordPress site using the REST API. Add the three posts to the page with markup using JavaScript and the DOM API. 00:12:03 Aleksandar Perisic: I will say it before I get the Question, I lack all of this even to answer simple things, as I just watched videos once. :( will try to get json from wp snd small markup in next 9minuts 00:22:25 David Brooks: This just highlights how much I need to practice :) 00:26:00 Amelia Briscoe: I’m just troubleshooting 00:28:02 Amelia Briscoe: had one too many ‘=‘ in my response…:-) 00:28:50 Zac Gordon: Good catching the errors! Were you able to get it working? :) 00:29:06 Amelia Briscoe: Yeah, it’s not perfect formatting, but it’s on the page 00:29:16 Zac Gordon: APPROVED 👍 00:29:34 Dave: Too much stress for this early in the day 00:29:45 Amelia Briscoe: you should try after two gins. 00:31:48 Zac Gordon: JSON.parse() 00:32:25 Amelia Briscoe: Part of the web API 00:32:42 Aleksandar Perisic: false 00:32:48 Aleksandar Perisic: browser protocol 00:34:36 Zac Gordon: https://javascriptforwp.com/courses/%F0%9F%9A%80-js-for-wp-bootcamp-fall-2018/sections/week-3-api-calls-json-local-storage/ 00:36:29 Aleksandar Perisic: I think we only worked there with JS Object - and with JSON (short one), we didnt fetch it via JS ? or i missed something ? 00:37:10 Aleksandar Perisic: we didnt load JSON from url ? wp-posts .. from this week 00:37:14 David Brooks: Referring to XMLHTTPRequest? 00:37:39 Aleksandar Perisic: Oky, I skipped that then sorry 00:43:41 Zac Gordon: https://stackoverflow.com/questions/38661622/get-js-localstorage-items-case-insensitive 00:44:02 Zac Gordon: https://developer.mozilla.org/en-US/docs/Web/API/Storage/key 00:44:05 Brian Hinton: Ok. I have a question. With .then ( response => { console.log(response); {) I'm the type that needs to understand why to understand how something is working. What is going on behind the scenes that allows that data to flow through? Is it related to This? 00:46:22 Brian Hinton: And early 00:50:25 Dave: Will we spend more time on promises 00:50:57 Brian Hinton: I'm confused on the structure of response.json() outpoing json. Is it simply because JSON is what is retrieved? Is response.json() required or could you name that anything? 00:52:37 Brian Hinton: https://developer.mozilla.org/en-US/docs/Web/API/Body/json 00:52:54 Brian Hinton: Yeah my mind was on the previous method of stringfy, etc 00:53:36 Amelia Briscoe: hic 00:54:07 Amelia Briscoe: I need to work out how to remove the HTML entities from the titles and content.. 00:54:56 Amelia Briscoe: ..or convert them to proper format should I say 00:55:05 Amelia Briscoe: yes :-) 00:55:35 Amelia Briscoe: That’s right. 00:56:38 Amelia Briscoe: Yup, you did go through that with us too. Thank you! 00:56:44 Brian Hinton: Btw. Could you explain your commenting method there, and what you are communicating. 00:57:15 Brian Hinton: Parses it 00:58:42 Brian Hinton: That's cool. 00:58:50 Dave: The code you just showed available 00:59:07 Brian Hinton: I think some of it wasn't initially there. 00:59:11 Dave: On the promises 00:59:34 Dave: ok have not checked