Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

gmabber wrote:

It most definitely is not a fight :-) Also, I'm glad you like the app. I'd make it much more but without an API I'd constantly be struggling with things like login problems, set downloading progress, one star reviews (which are really really disappointing for me), support requests and others and I simply don't have the rime for that. Either I can do something great or it's not worth it to waste my time on and right now I'd be wasting my time.

Completely understandable. I will start on a readonly alpha version after this release, even if it's just going to be authentication and fetching a user's list of sets.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

Completely understandable. I will start on a readonly alpha version after this release, even if it's just going to be authentication and fetching a user's list of sets.

Awesome! Just drop me a line when you finish and I'll update the app :-)

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

I will start on a readonly alpha version after this release, even if it's just going to be authentication and fetching a user's list of sets.

Sounds nice. Will it be available to devs in general?

Also, would it be able to have a plaintext set export?

Last edited by Chaim (2014-05-21 13:59:48)

In general, I am blunt and to the point. I apologize in advance if I appear mean or rude.

I am the Community Admin for the CSUN Magic Players Community. I also sometimes help people with technical issues.
My Wishlist | Featured Deck

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Chaim wrote:
sebi wrote:

I will start on a readonly alpha version after this release, even if it's just going to be authentication and fetching a user's list of sets.

Sounds nice. Will it be available to devs in general?

Also, would it be able to have a plaintext set export?

Yep @ availability. We already have a CSV export available for sets.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

We already have a CSV export available for sets.

Yeah, but how do I grab and trim that with js?

Also, will we be able to fetch card images easily?

In general, I am blunt and to the point. I apologize in advance if I appear mean or rude.

I am the Community Admin for the CSUN Magic Players Community. I also sometimes help people with technical issues.
My Wishlist | Featured Deck

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Chaim wrote:
sebi wrote:

We already have a CSV export available for sets.

Yeah, but how do I grab and trim that with js?

Also, will we be able to fetch card images easily?

You mean with js from a browser? I assume you can't do that easily because of cross-domain issues. You can't do it easily with normal JSON apis either, you need to do it serverside.

For card images, right now you can get them for ex with:

http://deckbox.org/mtg/Swamp/tooltip

Support for separate printings to come later.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

You mean with js from a browser? I assume you can't do that easily because of cross-domain issues. You can't do it easily with normal JSON apis either, you need to do it serverside.

Not a normal browser, no. Cross-domain is not an issue.

sebi wrote:

For card images, right now you can get them for ex with:

http://deckbox.org/mtg/Swamp/tooltip

Support for separate printings to come later.

I get a page of gibberish at that link.

In general, I am blunt and to the point. I apologize in advance if I appear mean or rude.

I am the Community Admin for the CSUN Magic Players Community. I also sometimes help people with technical issues.
My Wishlist | Featured Deck

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Chaim wrote:

Not a normal browser, no. Cross-domain is not an issue.

Then you can just make a get request to the csv export url and parse it with something like https://github.com/wdavidw/node-csv . But I'll add a json one too in the API at some point.

sebi wrote:

I get a page of gibberish at that link.

Yeah, the mime type is set to html by the cacher, old bug. That's a valid jpg image of the card though if you save it and open it.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:
Chaim wrote:

Not a normal browser, no. Cross-domain is not an issue.

Then you can just make a get request to the csv export url and parse it with something like https://github.com/wdavidw/node-csv . But I'll add a json one too in the API at some point.

Chaim wrote:

I get a page of gibberish at that link.

Yeah, the mime type is set to html by the cacher, old bug. That's a valid jpg image of the card though if you save it and open it.

Testing. The following should be an image of the most recent swamp.

Most recent swamp

In general, I am blunt and to the point. I apologize in advance if I appear mean or rude.

I am the Community Admin for the CSUN Magic Players Community. I also sometimes help people with technical issues.
My Wishlist | Featured Deck

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

gmabber, a temporary solution that might help you get the app running again:

http://deckbox.org/sets/list.json?user_login=sebi

It does not list private inventories and decks yet, but you can use it as a quick solution until the proper API is coming.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

gmabber, a temporary solution that might help you get the app running again:

http://deckbox.org/sets/list.json?user_login=sebi

It does not list private inventories and decks yet, but you can use it as a quick solution until the proper API is coming.

Works great! Thanks! big_smile

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

gmabber, a temporary solution that might help you get the app running again:

http://deckbox.org/sets/list.json?user_login=sebi

It does not list private inventories and decks yet, but you can use it as a quick solution until the proper API is coming.

Sebi, has anything changed with the CSV exports? The card count i'm getting always equals to zero... I'm forming url's as you described some time ago...

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Should be the same. Could you send me an url to the export that is causing troubles?

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

Should be the same. Could you send me an url to the export that is causing troubles?

I made some tests and it turns out the export works ok for Inventory, Wishlist and Tradelists but returns 0 as a count for exported decks. Also, there's no indication if a card is maindecked or in sideboard, which is kind of important.

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

For me it seems to work, both the count, and the sideboard flag.

E.g. http://deckbox.org/sets/export/97230?fo … mp;v2=true

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

http://deckbox.org/sets/export/260440?f … mage%20URL

This returns count as 0. It used to work and works for inventories etc.

Last edited by gmabber (2014-06-17 11:40:21)

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

I think the old version of the export did not work correctly for the decks, and did not have a sideboard flag. These are present in the newer one. To get it, add the parameter v2=true to the url

So for the one you pasted this would be

http://deckbox.org/sets/export/260440?f … mage%20URL

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

It's working great with v2=true but could you share all the parameters? I only know of:

columns=Count,Type,Cost,Price,Rarity,Image%%20URL

And that's it. How to know which card is in sideboard and which isn't?

Btw. Looks like the v2 works differently for decks and INV/WISH/TRD? I'm getting different responses...

Last edited by gmabber (2014-06-17 13:25:06)

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

It is slightly different, yes.

You can see the columns in the header - first line of the csv. The Sideboard column has values of 0 for main deck and 1 for sideboard.

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Just out of curiosity, how is the iphone app is going?

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

561895118 wrote:

Just out of curiosity, how is the iphone app is going?

Slow but steady. I've implemented downloading all sets and a single set. What's left is the view for presenting users data and - tadaaaa - card searching. To make it complete i'd have to include some updating/persistency logic because downloading 5000 cards each time a user enters his/her inventory would not be smart. On top of that some polish and app will be ready.

Here's a WIP screenshot:

https://dl.dropboxusercontent.com/u/149880/iOS%20Simulator%20Screen%20shot%2018%20cze%202014%2C%2006.39.29.png

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Looking cool!

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

sebi wrote:

Looking cool!

That's just the start ;-)

http://ajfek.pl/mlc-banner.gif
^^ Help me spread the good news! big_smile

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

ya so i am going to be that guy. any word on the android version?

Re: iDeckbox v1.0 for iPhone and iPad is AVAILABLE :-)

Cant wait for it to be available again