[image: zipline.kobedepeuter.be]
API warlord_bonus type
Started by DeKleineKobini [2114440] Committee on in Bugs & Issues.
About this thread
Posts archived: 5 / 5 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
- Archived posts
- 5
- Discussion span
- →
- People posting
- 4
- Likes on archived posts
- 1
- Posts by staff, officers and moderators
- 4
- Authority score
- 59 / 100
- Historical score
- 43 / 100
- Story score
- 42 / 100
- Engagement score
- 43 / 100
[image: zipline.kobedepeuter.be]
Thanks..!!
Hello,
I've made the changes that should fix this issue in v2, but only for faction attacks. There's more work needed to apply the same change for user attacks.
There are some more changes done here as well:
- some fields are renamed
- fields without values will now return "null"
- booleans will now start with prefix "is_"
- 0 & 1 will now be "false" and "true"
- removed attack id from being a key and added it as a field in the object
- warlord modifier will now be present on all rows (display as 1 if its not active)
I wouldn't really use v2 for anything other than testing at the moment.
Small before & after comparison:
You can check for yourself with:
https://api.torn.com/v2/faction/?type=factionselections=attackskey=
Hey!
Both 'user' -> 'attacks' & 'faction' -> 'attacks' selections have this bug fixed in API v2.
Please see the Swagger documentation for more information:
https://www.torn.com/swagger.php#/User/get_user_attacks
Please let me know if you find any issues with it.
Thanks! :)