Skip to content
TORNLIFE More

Mug amount API request

Started by Emforus [2535044] Wiki Contributor on in API Development.

3 replies · 117 views · thread synced · 6 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 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
4
Discussion span
→
People posting
4
Likes on archived posts
1
Posts by staff, officers and moderators
1
Authority score
70 / 100
Historical score
31 / 100
Story score
25 / 100
Engagement score
44 / 100
Emforus [2535044] Wiki Contributor
Trying to get the amount of cash gained from a mug, and while there doesn't seem to be a key for it in
user/?selections=attacks
, there is a "code" key that leads to the attack log, which does have the mug amount. Is there any way to fetch that amount from the attack log?
Fr00t [2518990]
Do you know if this has been commented as a design decision or if it's just left out?

Would be interesting to see if they include it in the activity log API when that arrives.
kYo [2106640]
I believe the news format will be similar to the one in faction API for {crimes/attacks/armory} news.

[image: i.imgur.com]

assuming above is my activity log, the one when pulled from API will look something like

You edited your 5k Chain Profile Signatures in a private forum.
You used 25 energy anonymously attacking {url to person profile here} and mugged them for $abc,def (chain #1) [{url to attack report here}]

Unless they changed the activity log format or changed the way they represented the data, the mugging amount should be shown. and it is possible to parse it.