Skip to content
TORNLIFE More

Api Log bug (maybe)

Started by Bugsy-Bunny [477315] on in Bugs & Issues.

1 replies · 36 views · thread synced · 7 days ago · View on torn.com
About this thread

Posts archived: 2 / 2 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
2
Discussion span
→
People posting
2
Likes on archived posts
1
Posts by staff, officers and moderators
1
Authority score
54 / 100
Historical score
26 / 100
Story score
30 / 100
Engagement score
33 / 100

Most-liked replies

Bugsy-Bunny [477315]
When querying the log API the logs for trades it show different strings for the 'trade_id'

Some show the complete url of the trade, the others just shows the trade_id itself.

Is this intentional or something that can be sorted? Selfishly , id rather they just matched so i dont have to manipulate the url to just get the ID of the trade, or add the id to a url string.
4400= url
4401 = url
4411 = ID
4413 = ID
4420 = ID
4430= url
4483 = url
4484 = url

2 examples below:

cw1CNfh9RLTiSKPz5LpL": {
"log": 4420,
"title": "Trade expire",
"timestamp": 1683915307,
"category": "Trades",
"data": {
"user": ***,
"trade_id": 7892909
},
"params": {
"italic": 1
}
},
"Ilo6FKZMqQSeBEQa6c9A": {
"log": 4430,
"title": "Trade completed",
"timestamp": 1680777084,
"category": "Trades",
"data": {
"user": ***,
"trade_id": "[<a href = "/trade.php#step=view&ID=7800534"target = "_self">view</a>]"
},
"params": {
"italic": 1,
"color": "green"
}
},