Due to the fact that api key is assigned to global object e.g. Omise.secret_api_key, this makes it difficult to maintain per instance api key and can cause some bug when switching between api key.
This PR fix the above issues and #30
Summary
Fix List object doesn't retain api key for later calls.
Fix child resource doesn't use api key from parent object
Due to the fact that
api key
is assigned to global object e.g.Omise.secret_api_key
, this makes it difficult to maintain per instance api key and can cause some bug when switching betweenapi key
.This PR fix the above issues and #30
Summary
List
object doesn't retain api key for later calls.