I'm tired of using other people's modules for interacting with websites' APIs. But I can't seem to quite wrap my head around using JSON with a website/cgi script I haven't designed. Are there any good tutorials that talk over how to build a JSON file to send to a RESTful API and then do what you want, preferably generalized so I'm not searching for a new one for each website?
The API I'm trying to work with at the moment is Tumblr
So, since Tumblr has a well documented and fairly accessible looking API, how do I go about writing a module for uploading it that I'd actually understand? I don't want someone to just write it for me. I'd like a tutorial that explains how to put together a json file, send it, and so on.
I've managed to sort of put together my own sorts of AJAX interactions on experiments I've made, but they're pretty simplistic, and it's easier because I can see what my request output will be in the shell after I dump it to the json module and then form the response code around that. And if the guide is written for somebody really inexperienced, I'd actually prefer that. I feel like I get my bearings better if a guide kind of takes things back to the beginning.
For now, I'm going to be working mostly on my home computer, but I'd like to at least have a basic understanding of what to do with mostly builtin and small external modules rather than full on frameworks so that if I want to set up something on a somewhat restricted hosted server it can still work.
Yes, I know 9/10 times you can find a good library, and I could probably scrape by with the one I found, but I really feel like I'd rather build this tool to enhance my skills. Besides, I just know someday I'm going to find another website I want to work with that doesn't have a good API wrapper.