ylecuyer / survey-gizmo-ruby

Gem to use the Survey Gizmo API
MIT License
23 stars 26 forks source link

Make it easy to use different API keys #88

Open peret opened 7 years ago

peret commented 7 years ago

This is probably not a very common use case, but I would like to use API-keys of different accounts in one session. As far as I can see, there's no easy way to achieve that right now, correct?

Is that something you would consider useful?

apurvis commented 7 years ago

you can reconfigure the gem mid-session, which is indeed slightly awkward but would work fine.

if you actually wanted to be able to maintain 2 separate Surveygizmo::Connection objects with different keys, that would be a fairly significant refactor that i am unlikely to undertake because i don't need the feature but you could start here

apurvis commented 7 years ago

@mkaydev this is what you are working on, right? Have you considered using VCR to update the specs? It's fantastic.