Closed rept closed 7 years ago
Any updates on getting this merged?
Anybody still maintaining this repo?
Im still getting INSIGHTLY starting [get] request to [Contacts] with no payload
and this is what I have
Insightly2.api_key = ENV['INSIGHTLY_API_KEY']
Insightly2.client.get_contacts
Am I using this right??
@kftwotwo I'm not sure if this is related to my bug fix here. This commit fixed the problem that if you first use a certain api_key and then another one, the client would continue to use the first one.
Beware: unfortunately this fix isn't merged yet.
Opps... I got redirected to here sorry about that @rept
Currently when you create
and some time later you do:
it will still use the previous key (...xxxxx) since @client already exists and there is no detection of a changed api_key.
This PR fixes that and will create a new client if it detects a different api_key