Ixw: forum
Ixw [3143585] Level 19
- Forum posts (Torn's count)
- 33 observed
- Archived posts
- 33
- Threads started (archived)
- 3
Boards
From the 33 newest archived posts.
- API Development
- Graveyard
- General Discussion
Threads started
Most-liked posts
Likes as archived at fetch time, adjusted for how long each post had been up. Scored posts only; the full score pass runs after the import.
Anyone have some test ids for the torn api, specifically chainreport, itemdetails, itemstats, raidreport and rankedwarreport. I tried using 108 for the item info but it didnt work even though the id belongs to the 9mm uzi
So i am using my faction id with a limited access token to try to query for all information as documentation example for all selections, however for limited selections i cant get the info resulting in error code 7 however i thought i would be able to see these since i am in the faction and i can see the things within torn itself. Would i have to be the faction leader, or perhaps have some permissions given to me from the leader to see these queries?
so for that query on the faction leader, i had a way were i was using rankedwars then going thru all those to check each faction and then find the id for the leader or the faction, however its annoying to do that since its a nested loop, so i figure i could just cache the ids for factions and users to save time. tho i am curious if rankedwars shows all factions i think it just shows factions currently in a war
so i am wondering if it is possible via the api to automate to see during a war when someone on the opposing faction gets on, i know you can do that for your members and when your on torn you can see if they are online via green, inactive in yellow or offline in white and i was just wondering if there would be a way to get like a warning when a big hitter comes online as far as i can tell the functionality isnt there same thing as no way to search for a user via the api
Recent archived posts
the status code was indeed 503 so should be sorted now
my saying it is inconsistent means that it rarely happens and the error is sort of vague when the error happens it is at the json decode level but for now its not a major issue but replicating the error is out of my hands sadly so im not sure exactly with the site returns
hmmmm the most annoying part is that when the error happens it is v inconsistent so fixing it is rough, i guess ill add debug code for outputting values for when the error happens
does the api return something not equal to 200 when getting an error, because i occasionally have it return with a 200 status code but it still has an error in the json()[key]
Ahhh okay sweet so then my check for something is pointless lol, that is great so my initialization based off active factions should be all factions I think is there like a runtime error you get from the API if you go over 100 calls a minute or the daily number of calls? That will be fun to randomly run into later lol
Is the list using territory wars and raid as well? Haven't comved thru the list extensively but I have used it for updating caches for a map of names of people and factions
I just got APi access for my faction and used an id from the chains call in the faction API thanks tho as I may use this at some point later
still working on the chainreport tho
okay my issue was i was using a user id that had no weapons or armor in their bazaar or display sorted now, as are the other id issues by querying for the wars, and raids things and just grabbing the first in the keys
yea i saw that in the docs after asking this thanks
ahh okay thanks for the info ill look into this then
Anyone have some test ids for the torn api, specifically chainreport, itemdetails, itemstats, raidreport and rankedwarreport. I tried using 108 for the item info but it didnt work even though the id belongs to the 9mm uzi
okay i sorted it just had a find replace issue for one in the ide and for the other specifically companies had to add in a check for the companies query to then change the id to use company type. This thread can be deleted unless it may be helpful to others
i get error 6 for companies and profile
for error 6 aka incorrect id im not sure what id it requires for even when it is option i get that error
okay the ones with error 7 are only available to directors for the company i believe
same issue with the company api as well with fun added incorrect id error
im curious if there is a way to get the items a defender has as well because when you attack you can see that as well as stat bonuses
So i am using my faction id with a limited access token to try to query for all information as documentation example for all selections, however for limited selections i cant get the info resulting in error code 7 however i thought i would be able to see these since i am in the faction and i can see the things within torn itself. Would i have to be the faction leader, or perhaps have some permissions given to me from the leader to see these queries?
awesome thanks