I also do this when the user first enters their api key in my application. If the key is incorrect I rescue the exception and give notice that the key is incorrect. I noticed that when I first start with a good key, the next requests keep being good although I can change my Insightly2.api_key to a bad one, the Insightly2.client.get_contacts keeps working. When I start off with a bad one, the good ones don't work anymore afterwards.
Just to make sure: it's ok to change the Insightly2.api_key several times right?
I seem to randomly get these messages:
Although the only thing I do is:
I also do this when the user first enters their api key in my application. If the key is incorrect I rescue the exception and give notice that the key is incorrect. I noticed that when I first start with a good key, the next requests keep being good although I can change my Insightly2.api_key to a bad one, the Insightly2.client.get_contacts keeps working. When I start off with a bad one, the good ones don't work anymore afterwards.