r/javaScriptStudyGroup • u/[deleted] • Oct 11 '17
Beginner - Struggling with AJAX, API's & Json.
Hi! I have been coding for a couple of months now and have decided i want to start doing projects using data from API's. I have watched a few tutorials on pluralsight and youtube etc but nothing seems to help with what i'm looking for - i was wondering if anyone knew of a good tutorial to get me up and running - my current understanding is that AJAX is the method of getting Json(being the information itself) from a database (the API). But when i try and start doing one for myself i seem to get bogged down with a number of different things and the official API documentation tends to confuse me further! Any help or tutorial ideas would be hugely appreciated! Cheers.
1
u/psikosen Oct 12 '17
Download postman to check the it's urls are valid
https://www.smashingmagazine.com/2012/02/beginners-guide-jquery-based-json-api-clients/
Or
https://www.codeproject.com/Articles/31271/Ajax-Tutorial-for-Beginners-with-XML-JSON-Part
Or check out the jquery way of calling an Ajax urls its pretty easy if you need help finding that I'll search one for u.
1
2
u/thattroglodyte Oct 18 '17
I'd definitely recommend working through Tom Johnson's Intro to APIs. It's meant for technical writers but the Postman exercises require you to use APIs and it's all really well documented (source: I'm a tech writer learning JS). http://idratherbewriting.com/learnapidoc/docapis_introtoapis.html