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

In addition to the @store_id, there should also be a @company_id #6

Open
juuso opened this issue Apr 4, 2014 · 1 comment
Open

Comments

@juuso
Copy link
Contributor

juuso commented Apr 4, 2014

Currently, the gem uses the @store_id variable to build all URLs, even though most of the API URLs actually require the company identifier, not the store identifier. For many companies, they simply happen to be identical by default. This is not always the case, though.

This bug quickly becomes apparent when you have more than one store under your company account.

Here's an example URL where @store_id is used correctly:
https://sites.fastspring.com/#{@store_id}/...

And an example where it's used incorrectly:
https://api.fastspring.com/company/#{@store_id}/...

@juuso
Copy link
Contributor Author

juuso commented Apr 4, 2014

Added a pull request.

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

1 participant