You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @junpayment, unfortunately, that's not possible with the current API. I remember thinking of that when I was putting this together, but never ended up needing it.
It should be easy enough to modify the current API to add an exported Client type, then have the DefaultClient be just that - sort of like Go's http package.
Unfortunately, I don't have time to work on it, but I'll happily accept a PR. If you'd like to take a stab at it, I might do something like the following:
Add a Client interface
Make all of the things that use defaultClient methods on the Client interface, e.g. NewQuery
Hi,
It seems that the defaultClient is present in the
parse
package as a singleton.https://github.com/kylemcc/parse/blob/master/rest.go#L75
Therefore, for example, if I want to access multiple parse endpoints, it seems to be necessary to initialize each time, like below.
I would like to use multiple client objects, how can I do that?
Thanks your great product!
The text was updated successfully, but these errors were encountered: