[#299] application api key

Migrated from Redmine #299 | Author: himanshu himanshu
Status: New | Priority: High, I’m very impatient | Created: 2018-12-05


hi,

  1. i would like to know how to get application api key.
    On your official api - doc, it says “To
    get application API key please contact SimplyBook.me support team”,
    and your support team sent me here.
    i have the api key, but i suppose it cant be used as a application api key as i have tried that already.
  2. i want to know if you provide one time api keys for use on server side (to be uesd without regenerating token from time to time), as the usertoken expires after few hours, i want something
    so that i dont have to regenerate tokens.

Redmine Admin wrote:

Hi,

  1. Please explain us why do you need application API key? - We do provide it only for partners or to enterprise users on dedicated server.
  2. Yes, it is possible. Token lifetime can be increased to 10 years for enterprise users on dedicated server.

himanshu himanshu wrote:

Redmine Admin wrote:

Hi,

  1. Please explain us why do you need application API key? - We do provide it only for partners or to enterprise users on dedicated server.
  2. Yes, it is possible. Token lifetime can be increased to 10 years for enterprise users on dedicated server.
  1. we are developing a business solution/application that will be using your service and will be highly dependent on it i can say. as this is not specified in api-doc, can you please tell me what exactly is application API key and what are its benefits over api key or token from getUserToken.

  2. can premium users have the benefits of token lifetime expansion.

Redmine Admin wrote:

  1. application API key is only needed to get data from differnt dabases using same key. There is no other difference from user API key
  2. It is only possible to set it per server, not per account

himanshu himanshu wrote:

Redmine Admin wrote:

  1. application API key is only needed to get data from differnt dabases using same key. There is no other difference from user API key
  2. It is only possible to set it per server, not per account

can you please provide me the steps to implement it on our server or some sample code.
and the best approach for handling key expiration and regeneration procedure according to you.
if you can provide me with some server side code examples it will be really helpful in understanding and implementing it on our end.

himanshu himanshu wrote:

hi,
i am still waiting for your reply.
i would simply like to know how to increase token lifetime for premium users.

Redmine Admin wrote:

this is technically impossible. We can do it only for enterprise clients on dedicated server. You need your code to regenerate token when expired

himanshu himanshu wrote:

is there any api rate limit for paid users?

Redmine Admin wrote:

Yes, there are some limits of course. No more than 10 requests per second