melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)
melannen ([personal profile] melannen) wrote2015-03-25 06:36 pm

of APIs and catch-22s

So for the past, oh, year or so, I have been sporadically and half-heartedly working on* a fork of writtenkitten that will let you pull images from more fannishly-oriented sites than flickr, because tbh when you put in "kaiju" or "methos" as your search term it doesn't pull up much from flickr/creative commons.

Anyway, I have gotten as far as rebranding it "wrotegoat", fixing the bug for the first kitten goat, and adding some more user options, but when it comes to actually getting images from Tumblr, I run up against the fact that I have no idea what I'm doing with APIs, and Tumblr makes you "register your application" before you can play with their API.

So if there is anyone here who knows anything about APIs, can you answer me one simple question? To make an app with the tumblr API, I have to register an app. To register an app, I have to have made an app. To make an app I have to register an app. To register an app I have to have made an app. HOW DOES THAT WORK?? Can I register with a dummy URL, keep coding with the files on my hard drive until it at least vaguely works, and then change it later, or something?

...also shouldn't programmers know what an 'infinite loop' is?

*when I know I should be doing other stuff but really really dunwanna
stellar_dust: Stylized comic-book drawing of Scully at her laptop in the pilot. (CATS - darcy submarine)

[personal profile] stellar_dust 2015-03-26 01:10 am (UTC)(link)
Trying to recall from what I did at MHC ... I think APIs actually need you to have something running on a webserver for them to interface with. Like, as far as Tumblr is concerned, your computer is just an I/O interface for a human, but for the API to work, your server and Tumblr's server have to be able to interface more intimately than that - software has to talk directly to software, which needs a server, given ::technobabble about the infrastructure of the internet::. Someone else can probably describe that more coherently.

You should be able to set it up on katycat.net, though.


ORRRRRRR you could just click back and forth between wowair.us and icelandair.us until you make a decision, both of which have frankly unbelievably low prices right now (compared to last year anyway).
synecdochic: torso of a man wearing jeans, hands bound with belt (Default)

[personal profile] synecdochic 2015-03-26 01:39 am (UTC)(link)
Yes, I haven't looked at Tumblr in specific, but sites generally want to know who you are, how to contact you, and a URL that will be associated with your client/gizmo/etc before they'll give you an API key -- it means they'll know where to yell if your gizmo breaks horribly and starts effectively DDoSing them.

You should be just fine with a dummy URL.
synecdochic: torso of a man wearing jeans, hands bound with belt (Default)

[personal profile] synecdochic 2015-03-26 01:49 am (UTC)(link)

Yeah, I don't know of any really good "how to use a site's API to do cool things" tutorials out there -- everybody assumes you already know what you're doing!