WebAPI
Can I (we) get a bit more information about the IRE web api? I had never seen it mentioned until Garryn posted about it today, even though it appears to have existed for some time.
I had to guess that the base URI was api.imperian.com -- what other secrets are out there?
Specific questions:
I had to guess that the base URI was api.imperian.com -- what other secrets are out there?
Specific questions:
- What URIs are used for OAuth requests? The two standard locations I know of (/oauth/request_token and /accounts/OAuthGetRequestToken) both failed.
- Does additional functionality exist not mentioned in http://www.ironrealms.com/IREAPIdocumentation.pdf
- If not, are you open to adding functionality?
Edit to add one more
- Why is plaintext auth an option when the site doesn't allow HTTPS for api requests?
- Follow-up - why doesn't the site allow HTTPS for api requests?
I am the righteous one...
the claims are stated - it's the world I've created
the claims are stated - it's the world I've created
1
Comments
I can't find the page for oauth initialization, though.
As for detailed information about players, that would make the full characters output a bit larger than they probably want for a single API get. You can take the list you retrieve and make individual /characters/<char>.json requests, though:
http://api.imperian.com/characters/rynok.json
{"name":"Rynok","fullname":"Rynok Reopev","city":"antioch","guild":"avengers","towne":"(none)","level":"104","bashing_level":"106","questing_level":"81","pk_level":"70","description":"He is a fast ssylsin. Standing a little over five feet tall, his reptilian scales give off a dull dark green color, softly fading to brown along his underbelly and a light green on his face. Both his face and hands are made of very fine scales, interlaced to form a diagonally overlapping pattern. On his upper right arm, starting a little above his elbow, you can make out what looks to be a black wing that fades away and becomes a light mist. A little further up you see the head of what looks to be an owl portrayed in mid flight. The owl's bright blue almost lifelike eye seems to glare at you. He is wearing an Illuminas ring, 14 pocketbelts, a money pouch, a ring of Aryana's Bounty, a glittering ring of vitality, a eupnoeic ring, Acrobatic Boots, a black Reopev armband, a Collar of Pyralis, a pair of Ogre's Gauntlets, a silver keyring, a steelweave surcoat, a ring of Magick's Bane, a Diadem of the Quickening, a deep green robe of power, a gold Taekate belt, goggles of whitesight, a Girdle of the Titans, a Sash of Wisdom, a suit of chain mail, a pair of Bracelets of Epiphany's Grace, and a ring of Epiphany's Gift. He wields a silver-spiked spear in his left hand.\n"}EDIT: And your all characters call would need to be something other than "characters", as that already exists (and fetches those online). Probably something like /data/characters or something. Adding a general "data" sub-category to the API would be neat.
the claims are stated - it's the world I've created
Wiki article here: https://en.wikipedia.org/wiki/OAuth
Twitter's faq here (it was originally developed primarily for twitter apps to auth with twitter): https://dev.twitter.com/docs/auth/oauth/faq
SSL is the security mechanism in HTTP Secure (HTTPS) (actually, TLS is used more than SSL these days).
https://en.wikipedia.org/wiki/Secure_Sockets_Layer
https://en.wikipedia.org/wiki/HTTP_Secure
the claims are stated - it's the world I've created
the claims are stated - it's the world I've created