These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Corp Wallet API issues

Author
Omanid Makbema
Imperial Academy
Amarr Empire
#1 - 2011-12-03 21:43:56 UTC
All,

I'm trying to get corp wallet API polls working, but I'm running into some strange issues with the API.

Trying to access corp/AccountBalance.xml.aspx using a CAK key (corporation key, access granted to everything), I'm getting a error 206 (Character must have accountant or junior accountant roles). This is using a corp API key however, which was created by the CEO character.

Trying to access account balance using a character key of the CEO (again, access granted to everything) results in error 221 (Illegal page request! Please verify the access granted by the key you are using!).

I tried both queries again, including the characterID parameter set to the char ID of the corp CEO, with the same results.

I know I'm just doing something wrong here, but I can't seem to figure out which combination of keys and IDs I should be using.

Any ideas?

Thanks,

--
O
Dragonaire
Here there be Dragons
#2 - 2011-12-03 23:44:19 UTC
Make sure you aren't trying to mix old style parameters with new key or verse-versa.

Your parameters should look something like this
/corp/AccountBalance.xml.aspx?keyID=123&vCode=secret

You shouldn't need any other parameters for this API since corp keys are always per corp/char.
One of the most common errors is people trying to use the key name instead of the ID since they miss it on the page where you get them.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Bottle ofMilk
Republic Military School
Minmatar Republic
#3 - 2011-12-04 18:52:52 UTC
I keep running into the same problem, although somewhere else. I've exhausted my imagination and am totally unsure what to do next (thanks documentation and useful error messages!).

I can get AccountBalance, including all accountIds and the balance. Fair enough. So I try to get the WalletJournal instead, and then it breaks, with the same "Illegal page request!" error, number 221.

Hope somebody knows what to do with that.
Dragonaire
Here there be Dragons
#4 - 2011-12-04 19:03:20 UTC
For the corp WalletJournal you'll need to add another parameter accountKey=1000 for the master wallet up to 1006 for all of them. same thing with WalletTransactions.

Make sure you've read through http://wiki.eve-id.net/APIv2_Page_Index if you're having problems understand how to do stuff with the APIs

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Bottle ofMilk
Republic Military School
Minmatar Republic
#5 - 2011-12-04 19:21:28 UTC
I have done that; I tried pasting the code and results, but the forum won't let me.
Bottle ofMilk
Republic Military School
Minmatar Republic
#6 - 2011-12-04 19:23:17 UTC
I would like to add that third party programs all report "no access" as well. And by those I mean eve universe for iOS and eveHQ. Even though _all_ the options have been selected while creating the keys; and I'm testing it with CEO or Director characters.
Dragonaire
Here there be Dragons
#7 - 2011-12-04 19:35:52 UTC
Have you tried the requests manually in a web browser? I've found what was wrong with my code many times in the past by having it show me the URL it was trying to use and then trying it directly. Sometimes just seeing the complete URL will let you find what's going wrong.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Bottle ofMilk
Republic Military School
Minmatar Republic
#8 - 2011-12-04 23:54:18 UTC
Yes, yes, I have. I let it rest for two hours and then suddenly one of my new keys started working. As we say in test: "idkwtf".

Quite unreliable I guess, sadly so.
Dragonaire
Here there be Dragons
#9 - 2011-12-05 00:06:07 UTC
If some of them are reused keys it might have been the old access was still being cached by CCP or for new keys it sometimes takes a while for them to be active. Usually only takes a few minutes for it to clear up in both cases but could be CCP was having some unknown issues and it was taking longer for some reason.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Omanid Makbema
Imperial Academy
Amarr Empire
#10 - 2011-12-05 00:34:30 UTC
Yep, just started automagically working for me too.

I guess I needed to give it more time after I created the key.

Thanks!

--
O