BDO-Planner / issues

BDO Planner public issues and feature request tracker
0 stars 0 forks source link

JSON Object With Stat Values For A Build #12

Closed Ihellmasker closed 3 years ago

Ihellmasker commented 3 years ago

In GitLab by @vigilvindex on Aug 1, 2018, 19:11

Description
JSON object with stats and values for each build accessed via URL: https://bdoplanner.com/UniqueBuildName/json

{
  "build": "3b64b75f-0496-4499-96e7-09996655b3ec",
  "url": "https://bdoplanner.com/UniqueBuildName",
  "basic": {
    "class": "ninja",
    "level": 60,
    "ap": 200,
    "aap": 200,
    "dp": 200,
    "hp": 200,
    "mp": 200,
    "stamina": 200,
    "weight": 80,
  },
  "offense": {
    "accuracy": 200,
    "bonusap": 200,
    "bonusaap": 200,
    "hiddenap": 200,
    "ignoreallresistance": 200
  }
}
Ihellmasker commented 3 years ago

In GitLab by @vigilvindex on Aug 1, 2018, 19:19

changed the description

Ihellmasker commented 3 years ago

In GitLab by @Ihellmasker on Aug 2, 2018, 13:16

That's an interesting idea, I assume its so you can integrate it with your own website or bot?

Few things;

We are most likely, at some unknown time, going to allow some amount of public access to our API, but we need to do some more work on setting it up for public access. This would allow you to authenticate into our API and retrieve things such as builds as a raw json, item lists, profiles, etc. More detail will come in the future when it's ready.

Some of the things you've suggested in your JSON sample though we can't do. Stats lists relating to a build aren't cached in any way, to store stat values against a build would probably triple or quadruple our database size, so we only cache the AP/Awakening AP/DP and Renown scores. Builds store item IDs, enhancement levels, Crystal IDs, stuff like that, then the calculation is performed by the client.

As such, a JSON like you've suggested isn't possible.

Ihellmasker commented 3 years ago

In GitLab by @vigilvindex on Aug 3, 2018, 06:38

Yeah it is for a Discord bot I wrote when the BDOBot got shut down. It has a gear command that lets users register their gear: !gear ap:200 aap:200 dp:200 accuracy:200 level:60 class:ninja link:https://bdoplanner.com/UniqueBuildName

I would like for users to be able to just supply their bdo build link and parse the values from that. I am considering just scraping the info with puppeteer.

Ihellmasker commented 3 years ago

In GitLab by @Ihellmasker on Feb 4, 2020, 20:51

closed