Skip to content
TORNLIFE More

API PHP error

Started by Plornt [1799359] on in Bugs & Issues.

1 replies · 20 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
0
Posts by staff, officers and moderators
1
Authority score
53 / 100
Historical score
25 / 100
Story score
26 / 100
Engagement score
28 / 100
Plornt [1799359]

So playing with the API, figured out you could specify multiple stock IDs and get back stock information for all of them by comma delimitating it.


When you try this on the /users/ route however you get the following PHP error:

http://api.torn.com/user/1,2,3?&key=Fatal error:

Call to a member function useBonus() on a non-object in /torncity/html/casino/modules/companies/classes/bonuses/companiesBonusWrapper.class.php on line 57