Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deck Log Image and Card Information Post-Processor #21

Closed
ronelm2000 opened this issue Nov 10, 2020 · 1 comment
Closed

Deck Log Image and Card Information Post-Processor #21

ronelm2000 opened this issue Nov 10, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ronelm2000
Copy link
Owner

ronelm2000 commented Nov 10, 2020

I've analyzed the API powering Bushiroad's DeckLog application and it should be possible to get image URL data from it.

This can be done using: POST https://decklog.bushiroad.com/system/app/api/search/2 (2 very likely refers to the Game ID Weiss Schwarz)

This request accepts application/json of the following format:

{"param":{"title_number":"","keyword":"GF/W33-001","keyword_type":["no"],"side":"","card_kind":"0","level_s":"","level_e":"","power_s":"","power_e":"","color":"0","soul_s":"","soul_e":"","cost_s":"","cost_e":"","trigger":"","option_counter":false,"option_clock":false,"deck_param1":"S","deck_param2":""},"page":1}

This will output the following JSON.

[{"id":4970,"card_number":"GF\/W33-001","num":0,"card_kind":2,"name":"\u7d20\u9854\u306e\u79c1\u3092 \u6afb\u4e95\u660e\u97f3","rare":"RR+","img":"g\/gf_w33\/gf_w33_001.png","width":400,"height":559,"direction":0,"sub":"","p_param":{"p1":"","p2":"","p3":"","p4":"","p5":"","p6":"","p7":"","p8":"","p9":"","p10":""},"max":4,"g_param":{"g0":0,"g1":1,"g2":0,"g3":0,"g4":1,"g5":0,"g6":0,"g7":0,"g8":0,"g9":0}}]

The "img" string shall refer to a subdirectory within the following URL (which may be subject to change): https://s3-ap-northeast-1.amazonaws.com/static.ws-tcg.com/wordpress/wp-content/cardimages/

Thus the URL of the serial GF/W33-001 refers to the following image: https://s3-ap-northeast-1.amazonaws.com/static.ws-tcg.com/wordpress/wp-content/cardimages/g/gf_w33/gf_w33_001.png

GF/W33-001

This Post-Processor should not be able to accept English cards.
This Post-Processor must first get image data via Release ID. Only use a single-card search when necessary. In such a case, the request body should be this.

{"param":{"title_number":"##GF##","keyword":"","keyword_type":["name","text","no","feature"],"side":"","card_kind":"0","level_s":"","level_e":"","power_s":"","power_e":"","color":"0","soul_s":"","soul_e":"","cost_s":"","cost_e":"","trigger":"","option_counter":false,"option_clock":false,"deck_param1":"S","deck_param2":""},"page":1}

When using Title Code/Neo-Standard Code search, the page variable in the JSON must increment by 1 until the resulting JSON becomes []. This is how all card data for that Title Code/Neo-Standard Code shall be obtained.

@ronelm2000 ronelm2000 added the enhancement New feature or request label Nov 10, 2020
@ronelm2000 ronelm2000 self-assigned this Nov 10, 2020
@ronelm2000
Copy link
Owner Author

Fully done with the latest dev build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

1 participant