Loading
HomeClubsClub #349
A Quantum Leap Forward In Your Japanese Import Experience

MFC API ClubMFC API Club

MFC API Club
ClimbatizeClimbatize7 years agoMisc
https://raw.githubusercontent.com/Ant-Robot/My-Figure-Collection-Android-SDK/develop/MFC-SDK/src/main/res/drawable-hdpi/web_hi_res_512.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.

MFC API FAQ: club/349/discus...
MFC API SDK for Android: github.com/Ant-...
Updated 2 years ago117 users16 comments

Forums6

Comments16 comments

0pt
API v4 coming soon.
10 days ago
0pt
Looks like the api is gone... I was using it to show my collection in a neat way, but now I’m just getting error 404

I can see the v2 api is still there... but couldn’t find enough documentation for it.
17 days ago
0pt
darkfader lolicon
Error 404 :(
18 days ago
3pt
Climbatize MFC Android app maker
Hello mates!

I just created a SDK for my own needs on Android : github.com/Ant-...

Feel free to use it, fork it, give suggetions, etc...
2 years ago
0pt
Keripo 「ケリポ」
ney (3 years 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
3 years ago
0pt
Climbatize (3 years 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.
3 years ago
0pt
Climbatize MFC Android app maker
ney (3 years 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: github.com/Clim...
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.
3 years ago
0pt
Luzai (3 years 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.
3 years ago
0pt
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.
3 years ago
0pt
Hello,

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

Any idea ?
3 years ago
View more comments
A Quantum Leap Forward In Your Japanese Import Experience

Staff

Admin(s)

Members117