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

Missing actual name in BoardGameVersion #57

Open
arnauldvm opened this issue Mar 14, 2019 · 1 comment
Open

Missing actual name in BoardGameVersion #57

arnauldvm opened this issue Mar 14, 2019 · 1 comment

Comments

@arnauldvm
Copy link

The current name property in BoardGameVersion class is what is actually called "nickname" in the web site.

(For example, the main name for game 41052 is "Loco Motive", but the name of the version 337221 is "Tokyo Train" while its nickname is "Cocktail Games French edition".)

Unfortunately, the actual name ("Tokyo Train" in the example) is not returned by the BGG XMLAPI2 (it returns "Cocktail Games French edition"). And the legacy API does not help for this problem.

The only way I could find to be able to retrieve this information is through a hidden :-( API.
E.g.:
https://api.geekdo.com/api/geekitem/linkeditems?ajax=1&linkdata_index=boardgameversion&nosession=1&objectid=41052&objecttype=thing&pageid=1&showcount=10&sort=yearpublished&subtype=boardgameversion
returns:

// ...
{
    "yearpublished": "2013",
    // ...
    "linktype": "boardgameversion",
    "objecttype": "version",
    "objectid": "337221",
    // ...
    "linkedname": "Tokyo Train",
    "links": {
        // ...
        "languages": [
            {
                "name": "French",
                // ...
            }
        ]
    },
    "href": "\/boardgameversion\/337221\/cocktail-games-french-edition",
    "versionname": "Cocktail Games French edition",
    "images": {
        // ...
    }
},
// ...

(See also: https://boardgamegeek.com/thread/1616315/getting-structured-game-version-and-publisher-data.)

Though, I'm really not sure if using undocumented (and even less supported) API's is in the scope of this project... :-/

?? Or should I start a side project ??

@lcosmin
Copy link
Owner

lcosmin commented Mar 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants