Closed bingxie closed 5 years ago
Hello @dblock Thanks for you review. According to you feedback I have some questions:
- They will sunset the old api on June 1, 2019, so do I need to mention this on README?
Personally I had no idea they would, so maybe say something to that effect. NBD
- Where should I put those UPGRADING description?
https://github.com/dblock/iex-ruby-client/blob/master/UPGRADING.md
- Should we bump the version to 1.0.0? IEX cloud sent me message they will have new version(version 1) next week.
Yes, sounds good, you can do this as part of the PR.
- I looked the document again, they only mentioned to put the token as parameter.
Maybe we shouldn't call it "secret token", just "IEX_API_TOKEN"? Where did you get the secret part from?
I've finally found the time to read https://iexcloud.io/docs/api/#authentication ;)
It looks like the token that you're trying to supply here is a publishable token. So I would call this IEX_API_PUBLISHABLE_TOKEN
. But secret tokens can also be used here if you're doing server-to-server communication. I think in ENV we should expect ENV['IEX_API_TOKEN']
to make these requests.
The API has some workflows that require a secret token, and we can defer implementing support for new APIs that take that for later. Once this is merged let's open ourselves some issues, including sandbox support and such.
@dblock I updated the token ENV name, and update to version 1 URI. Currently I am still working on the UPGRADING.md.
Looks good so far! Thanks for hanging in there.
Let's finish this @bingxie ? Need help?
@dblock Updated the UPGRADING.md, can you have another look? Thanks.
Merged it, thank you.
Would you like help co-maintain the gem? If you do, shoot me an email to dblock at dblock dot org with your rubygems account. Maybe you can make the next release?
@bingxie Also please take a look at https://github.com/dblock/iex-ruby-client/pull/46, I am making the client configurable to enable #44, remove the need for an environment variable, etc.
Because
I made those change to migrate to the new IEX cloud APIs. Which includes: