Marvel's Spider Man
releases on September 26, 2025!

Preorder now on CardKingdom Preorder now on TcgPlayer

Marvel's Spider Man
releases on September 26, 2025!

Preorder now on CardKingdom Preorder now on TcgPlayer
21 total results       Page 1 of 1
You must login or register to post a new reply
Posts [ 1 to 21 ]
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
03-Feb-2014 16:44 (Last edited: 16-Feb-2014 03:03)
1
Hi,

I've been working on a non-official version of the Deckbox API.
Give it a try: http://deckbox-api.herokuapp.com/ and tell me what you think!

This application is not supported by Deckbox.
This application rely on the site HTML (HTML parser), so any changes to it would break the API.
To detect these changes, I implemented a series of tests (executed twice a day for now) that send a warning when the page layout changed, so I can fixe the API as soon as possible.

Any comments are welcome!

My tradelist as example: http://deckbox-api.herokuapp.com/api/users/toratora/tradelist
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
09-Feb-2014 06:48 (Last edited: 12-Feb-2014 15:02)
2
New feature:

Upcoming features:
  • Add Type, Edition, Format, Rarity, Color filters
  • Add decks sideboard
  • Add card prices
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
Hi there,

Writing with my tablet - that's why I won't put mich effort now in writing perfect english - next time i'll be on my PC - promised :D

I just had a look into your API noticing one thing. If you search for a user, You habe to use his logonname not his profilname. Indeed it confused me for about 2minutes 'till noticing my profilsite is an automatic generate unqiue number while connecting deckbox to facebook. You are able to change it in your profile , so it's not that kind of a big deal. But maybe you want to document it ;)

Great effort though!

Are you already building an Android APP for deckbox vor got already requests by doing so?
My Only experiences in mobile development were 2 years ago for Windows mobile phone with xaml and csharp - I already Bad a quick look Into Androiddevelopment. Xamarin seems to enable a quickstart for me as csharp developer hence gaining experience in Java as well AS Android development for a quick Start seems a lil bit troubling to me. Free Version should be enable everything we need since se won't rely in third Party libraries.
http://xamarin.com/android

Typos, wrong words and so on are due to german autocorrect, for ans grammatical mistakes I'll beg for apologize since I always failed english in school.

Hope to read from you soon ;)
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
Hi,

I didn't try the login with facebook, thanks for pointed that out.
I've added information how to get a username.

I'm not building any mobile app yet, as I'm focused on this API ;)
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
12-Feb-2014 14:29 (Last edited: 12-Feb-2014 14:41)
5
Hi there,

your filter seems to be buggy.

Using your example returns an internal server error which is caused by the part "{"rules":{"operator":"contains","value":"trample"}".
Without this part, filtering works perfectly and using only these parameters returns an internal server error again.

Kind regards

Edit:

Some suggestions:

Extra Card Information would be useful - like Power/Thoughness and Abilities - and for our fellow gatherers maybe even the flavor Text/Artwork Artist.

Maybe even some cool shit like Rarity depending on different Formats.
As example:
Doom Blade has been printed common as well as uncommon - in Standard Pauper, Doom blade is currently unplayable whilst in Modern it's legal.
Perhaps you want to consider this while implementing Formats for Cards :)
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
I edited my previous post, I refactored the way I parse the filters, "rules" has been changed to "rules_text".

I can get the extra card information from a card page but not from a deck page.
So P/T, formats, flavor text will be available when you get data from a specific cards.
I will also provide the format of a deck and the colors used in it.
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
15-Feb-2014 01:38 (Last edited: 15-Feb-2014 01:48)
7
Hi there,

I just coded about 2 hours, developing the business logic.

Currently I am writing all the code to serialize those Objects - 'cause of that, I noticed that searching for a special Card (e.g. Anax and Cymede) returns its type as a single string (Legendary Creature) - while looking it up in one of your sets returns a string[] (Legendary, Creature). I would like to ask you, to change the type in a single CardRequest into a string[] (and renaming to types) as well as renaming subtype into subtypes (Single Card = subtype, Requesting Set = subtypes) - it would make it easier for me and your code would be straight up forward

Kind regards

Edit:

As well, it'll be nice, if you could add the rarity to a single cardrequest (Again as string[]) Edit2: Nevermind - I Just noticed, it's displayed in the Editions name...it's late :D[/] (Legendary, Creature). I would like to ask you, to change the type in a single CardRequest into a string[]
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
New feature:
  • The card resource now returns: Formats, Flavor text, Gatherer link, Power/Toughness or Loyality and Rules.


Fixed bugs:
  • Fixed card resource types/subtypes inconsistencies in field name and value type.
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
15-Feb-2014 17:53 (Last edited: 15-Feb-2014 18:44)
9
If everyone would release new Features and Bugfixes like you are, the world would be a better place :D

Then again, I did notice an inconsistence:

Requesting all Sets, they got a Property called Name. Requesting a specific Set its name is Property title.

Could you be so kind and change it to one? "name" is which I prefer.

Kind regards

Edit:

Are you able to get a Link to a cards picture while viewing a single set?
That would dramatically decrease my requests to enable a Spoiler view.


And j4i - a lil Screenshot of my TestTool:

http://i.imgur.com/t39bMxm.png
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
New feature:
  • Added tooltip/image fields to card resources.
    The image field is only available on /api/card/:cardname yet. The tooltip field will provide a raw image.
  • Remove trailing slash when accessing a resource:
    Ex: /api/users/:username/ becomes /api/users/:username
  • Implemented sideboard.
  • Renamed "title" field "name".


Thanks for you feedback.
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
17-Feb-2014 21:08 (Last edited: 27-Feb-2014 16:36)
11
Hey there,

just a lil thing - till now, each source of "Image" has been defined as "picture" (e.g. Users profile).

Could you please choose one? Thanks again! :)

Edit:

I am not able to visit following deck:

http://deckbox.org/sets/532625

API Link:

http://deckbox-api.herokuapp.com/api/users/mythos242/sets/532625

kind regards

Edit2:

Hey there,

just wanted to ask if you still exist :p

Anyway, I started developing the AndroidApp today and wanted to share some Screenshot of 3 Hours developing:

A total of four Images
http://imgur.com/sviiH6n,9HsJ7Hj,N8Dr1YA,Z0TInZz#0

I know it's now yet the best design you every have seen but I'll focus on functions till now :)

Edit 3:

yet another Bug: Requesting Friends does not return all Friends -->

http://deckbox-api.herokuapp.com/api/users/100000520842029/friends/ - shows only 3 of 4
(http://deckbox.org/users/100000520842029/friends)



Edit4:

Are you able to implement a CardSearch which will give you all Cards which contains the SearchString?

Result of the Searchstring Nicol would be both, the Creature and the Planeswalker

Edit5:
I did some research regarding the bug of friendscount.
As a result I can say, that in your own profile you see all of your friends - even these with pending friend request.
Thats not the case if you are logged out and searching for a specific users friends. Cause deckbox won't show, that a friend request is pending this confused me.
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
27-Feb-2014 17:11 (Last edited: 27-Feb-2014 17:11)
12
Hey,

I found the reason why this partial Setloading fails.

This Set contains the card: http://deckbox.org/mtg/Lim-D%C3%BBl's%20Vault which will return an error in your app.

There will be a problem with the û :)




Edit: Didn't meant to reply.. sry
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
Thanks for doing my QA :)
I'll take a look at that this weekend.
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
New feature:
  • Renamed "picture" field to "image"
Fixed bugs:
  • Fixed cards with special characters.

You were right, special characters (like û) caused the issue.
You can already search card with a specific string with the filters: /api/cards/?filters={"name":{"operator":"contains","value":"Nicol"}}
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
18-Mar-2014 22:21 (Last edited: 18-Mar-2014 22:21)
15
Great work dude.

My work on the App struggles a bit, since I got a lil problem with Android.
But I keep going and think, that it'll hit mid April.

I am going to contact you soon, since I got some questions :)

Didn't find any Bugs till now!
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
20-Mar-2014 15:28 (Last edited: 20-Mar-2014 15:31)
16
If you say you don't find errors, you will find errors.

Card with "//" in their title will fail to load:

Example:

http://deckbox.org/mtg/Give%20//%20Take
http://deckbox-api.herokuapp.com/api/cards/Give%20//%20Take



Kind regards
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
Oh, I fixed it, thanks.


Fixed bugs:
  • Fixed cards API with cards containing slashes.
Trade score 32 (100%)
Members
Registered: 02-Jul-2013 21:56
Posts: 65
23-Mar-2014 08:31 (Last edited: 23-Mar-2014 08:33)
18
Pressing any of the "Try it" buttons returns text junk like this:

{"status": 404, "message": "Not Found. You have requested this URI but did you mean /api/users/<string:username> or /api/users/<string:username>/tradelist or /api/users/<string:username>/sets/ ?"}

Your trade list example is a giant list of text. How is this supposed to be used? Is it not meant for human reading? I'm using the most recent version of Firefox and don't think I have any add-ons that should affect this. Any idea what the problem may be?
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
Hello,

Only the first button was broke, I fixed it.
You're right, it's not meant for human reading.
This is an API, it's an interface between external application (such as mobile app) and deckbox.
Trade score 0 (100%)
Members
Registered: 19-Apr-2013 17:11
Posts: 34
@Between:

Use this link:

http://jsonviewer.stack.hu/

Copy the results of ToraToras API and see the Magic :)
Trade score 74 (100%)
Members
Registered: 25-Feb-2013 01:58
Posts: 22
I've updated the API to parse the new html layout.

Some functionalities are missing due to this new layout:
  • /api/cards/ : missing type, subtype, edition, cost and rules
  • /api/users/ : missing trade score

I'll try to have theses data back.
Posts [ 1 to 21 ]
21 total results       Page 1 of 1
You must login or register to post a new reply