Skip to content
TORNLIFE More

API Feature Request: Faction level API Keys

Started by pobk [3171827] on in Suggestions.

147 replies · 431 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 148 / 148 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
148
Discussion span
→
Authority score
45 / 100
Historical score
38 / 100
Story score
64 / 100
Engagement score
77 / 100

People posting, likes and official posts are not counted for this thread yet: on threads longer than one page they come from a periodic pass over the archive, which has not covered it.

pobk [3171827]

Hello all,

 

I've raised this topic for discussion in the API Development forum. It seems to have some broad approval, and it was suggested that it be raised here to get some more eyes.

 

At the moment, API keys are tied to users. This is fine if all you're doing is working with user data, but when it comes to factions, this gets tricky.

I would like to suggest that a new API key be made available, one that is tied to factions and not users. We currently have two primary problems:

 

  1. When a user leaves a faction, any API keys in use by that user to retrieve faction data either stops working if the user is clever enough to drop the API key, or what usually happens, the API key will start erroring or returning data for a different faction the user has joined. Usually happens when the user goes guesting etc.
  2. When a user is absent for a long time, the keys associated with that user are disabled when the user goes dormant.

 

By using faction keys we gain the following:

 

  • Users do not require API permissions to access faction data.
  • Faction keys should be tunable in the same way that user keys are currently tunable to only allow specific fields as required.
  • If a user leaves or goes dormant, this has no effect on any API integrations.

 

I'm hoping this makes sense.

 

Mentions: API Faction keys