MFC API ClubMFC API Clubn/a

http://www.dedicast.fr/club.png

Join this club and become a part member of the next Tsuki Board.
Beta test apps, participate to the evolution of the API, developp widgets...

Here you will find all the help and the resources to make your own app based on the Tsuki API.

View allForums (4)

View more // Comments (12)

024 days ago (24 days ago)KeripoKeripo 「ケリポ」
ney (24 days ago) #2389599To diminish complexity, i prefer to check what i looking for by interval [n;n+2] but it'll be better if the API give some option like separator/breaking string to separate each values or give the possibility to specify the values we want.
I haven't looked at the actual API itself yet but judging from your conversation, the proper solution would be to request an update to the API's JSON response to provide the various values as separate fields (in addition to the "display name" you see on the web) and let the client deal with the formatting of individual parts rather than try to parse the combined string. Especially if there is the potential for added new fields later down the road. Manual parsing is never a good long-term solution.

~Keripo
024 days agoneyney
Climbatize (24 days ago) #2389382
The only problem with the split is that you can never know if a a figure will eventually be named with a dash in it. So I just focused my work splitting at the last "(" to remove manufacturer.

To diminish complexity, i prefer to check what i looking for by interval [n;n+2] but it'll be better if the API give some option like separator/breaking string to separate each values or give the possibility to specify the values we want.
024 days agoClimbatizeClimbatize MFC Android app maker
ney (28 days ago) #2383775Yeah , finally it's more easy to code a Java/PHP/whatever method to catch every terms with a String as separator.
Since the return can had a variable length, using a regex to describe it can be really painful.
Yes I used to split terms with " - " in first releases of My Figure Collection on Android. Now I leave it as is and I just split the manufacturer name, as you can see in this class: (ext link)
The only problem with the split is that you can never know if a a figure will eventually be named with a dash in it. So I just focused my work splitting at the last "(" to remove manufacturer.
028 days agoneyney
Luzai (6 months ago) #2097985It's a simple regex operation. In Objective C we have a helper method called componentsSeperatedByString: that I used to separate the string into an array. It needs to be " - ", with the spaces because some names have "-" in it too (eg Aa megami-sama - Belldandy - Everyone Has Wings Ver. (Kotobukiya)). The only reliable info you can pick out is the series name (it's always first) and the manufacturer (it's always in the parentheses).
For FigureCollector, I extracted these bits, stripped them from the result and displayed the rest as the figure's name so it shows up something like: "Belldandy - Everyone Has Wings Ver". You really need all the other info like scale size and model line (figma, etc) in the name to tell what figure it actually is. I found trying to extract that info to be unreliable and not really worth it. It'd probably be easier to scrape the HTML on the figure page.


Yeah , finally it's more easy to code a Java/PHP/whatever method to catch every terms with a String as separator.
Since the return can had a variable length, using a regex to describe it can be really painful.
06 months agoLuzaiLuzai
It's a simple regex operation. In Objective C we have a helper method called componentsSeperatedByString: that I used to separate the string into an array. It needs to be " - ", with the spaces because some names have "-" in it too (eg Aa megami-sama - Belldandy - Everyone Has Wings Ver. (Kotobukiya)). The only reliable info you can pick out is the series name (it's always first) and the manufacturer (it's always in the parentheses).

For FigureCollector, I extracted these bits, stripped them from the result and displayed the rest as the figure's name so it shows up something like: "Belldandy - Everyone Has Wings Ver". You really need all the other info like scale size and model line (figma, etc) in the name to tell what figure it actually is. I found trying to extract that info to be unreliable and not really worth it. It'd probably be easier to scrape the HTML on the figure page.
06 months ago (28 days ago)neyney
Hello,

I try to catch every single term from a request from API (Owned as search term)
(ext link)
Then i tried to find a right regular expression that take all term without the " - "

Any idea ?
01 year agoasmodaieasmodaie
Is the API still being maintained?
03 years agoClimbatizeClimbatize MFC Android app maker
New version of the app, design revamped, and at last compatible with the new API version, enjoy: (ext link)
04 years agoSinger_YunaSinger_Yuna All along the Watchtowe...
ClimbatizeI've took some screenshots, so tonight I'll post them, I have a lot of work right now ;)Take it easy, this is a free app, and the first impression is that I will check it frequently ^^
04 years agokilanikilani Sayaka Rank
I can't wait to see them! You guys are awesome ^^

View more comments

MFC API Club

Details

View moreMembers (85)