Showing Posts For atalexsutter.9360:

Can't access transactions/history

in API Development

Posted by: atalexsutter.9360

atalexsutter.9360

Ah, okay, great! Thanks alot

Can't access transactions/history

in API Development

Posted by: atalexsutter.9360

atalexsutter.9360

I tried to fix the problem with writing my own deserializer and stuff… Didn’t work…

Was thinking way to complicated
The only problem was that the ‘id’ the /history/buys returns doesn’t fit into a normal (32bit) int. Sadly RestSharp doesn’t throw an exception, but rather just doesn’t fill the object. Therefore a NullPointer Exception was thrown in my code.

Do you know how high can these numbers get?

Thanks a lot for your help!

Can't access transactions/history

in API Development

Posted by: atalexsutter.9360

atalexsutter.9360

Hey!

I’m trying to access /commerce/transactions/history/buys with my C# (+RestSharp) Code.
Whenever I try to call it I get a object back that is null. However it works fine with /current/.

Pastebin of the code in question
EDIT: I just saw that I pasted the wrong code, of course it should be: “commerce/transactions/history/buys” instead of “commerce/transactions/current/buys” in line 3.

Like I said with /current/buys (just changing the RestRequest-URL) it works completely fine and I get all my current listing back. Now I’m kinda confused why this souldn’t work, can anyone help me?
They look (and are according to the wiki) identical except the ‘purchased_date’, therefore RestSharp should be able to parse them into the same class, right?

(edited by atalexsutter.9360)