farkam135 / GoIV

https://www.reddit.com/r/goiv
Other
372 stars 138 forks source link

Export option #862

Open celandro opened 6 years ago

celandro commented 6 years ago

Pokebattler.com developer here.

It would be super nice to add an option to export to 3rd party websites or to google sheets or csv. This would allow much better integration for the users with whatever 3rd party app they wish to use.

There are a bunch of ways to do this of course. Some options in order of perceived difficulty

  1. Keep a csv of all parsed logs. Add some way to copy the logs out so they can paste it whereever
  2. Allow the user to set up a webhook that will POST the data from each scan to a configurable URL. For this to work with Pokebattler, this would require an Auth header
  3. Some sort of interface 3rd party developers could program to that would allow tighter integrations

For reference, this is what a add to pokebox call looks like right now:

Request URL: https://fight.pokebattler.com/secure/pokebox
Request Method: POST
Request Payload: {"pokemon":"GROUDON","cp":4074,"level":"40","individualAttack":15,"individualDefense":15,"individualStamina":15,"quickMove":"MUD_SHOT_FAST","cinematicMove":"EARTHQUAKE","name":"Earth Day"}
Response: {"id":652464,"name":"Earth Day","pokemon":"GROUDON","cp":4074,"level":"40","individualAttack":15,"individualDefense":15,"individualStamina":15,"quickMove":"MUD_SHOT_FAST","cinematicMove":"EARTHQUAKE"}
celandro commented 6 years ago

Here is an example integration someone did: https://www.reddit.com/r/pokebattler/comments/7unfva/the_easiest_way_to_export_your_pok%C3%A9mon_to/?st=jd582akb&sh=eec2eb64

nahojjjen commented 6 years ago

For documentations sake: This is being discussed in the discord channel, and the goal is to have it included with moveset evaluation in the 5.0.0 release.