Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify site_id for each call, overriding the global value #39

Closed
stevehanson opened this issue Mar 7, 2017 · 2 comments

Comments

@stevehanson
Copy link
Contributor

I work for a SaaS studio-membership company, and we use this gem to allow our members to book classes at any MindBody studio that we partner with.

This gem currently has a globally-set site_id that is used for each API call, which makes it difficult to use this gem to interface with multiple studios. I've monkey-patched my version of this gem to allow overriding the site_id on any request by passing in a site_id param as a local when making the request, eg:

MindBody::Services::SaleService.checkout_shopping_cart(site_id: "123456", ...)

I was wondering if this is functionality you'd be interested in including in this gem, and if so, would be happy to start a discussion in this thread and submit a PR once an approach is decided on. If not, no worries either.

@wingrunr21
Copy link
Owner

You mean via #17 when we discussed this previously? 😄

I'm going to close this issue but I'm happy to discuss further in #17.

@stevehanson
Copy link
Contributor Author

Hah, wow, completely forgot about that 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants