philnash / bitly

🗜 A Ruby wrapper for the bit.ly API
https://rubygems.org/gems/bitly
MIT License
451 stars 139 forks source link

API V4 support #76

Closed shimar closed 4 years ago

shimar commented 5 years ago

Hi.

The bitly documents say that

API V3 will be deactivated on March 1, 2020.

Are there any plan to support API V4 in this gem?

sevenseacat commented 5 years ago

We use super-basic functionality from this gem (basically just creating short URLs) so I'm working on adding support for that using the V4 API now. Will open a PR when complete.

VanPaitin commented 4 years ago

Hi @sevenseacat , when do you think the PR will be ready.

sevenseacat commented 4 years ago

https://github.com/philnash/bitly/pull/77

We're using it in production, so it's good for the basic functionality we need.

philnash commented 4 years ago

Hey everyone,

I have put together a completely new version of the gem to support version 4. It's released as version 2.0.0.beta.1 right now: https://rubygems.org/gems/bitly/versions/2.0.0.beta.1.

I'd appreciate if you could take it for a spin and let me know if it works for your.

Thanks!

tomwilshere commented 4 years ago

@philnash working fine for us - just a note that the current documentation on master is for 2.0.0.beta.1 but the published gem is 1.1.2 so a newcomer coming to this library and following the instructions would receive an error.

philnash commented 4 years ago

Thanks to those who have taken a look so far. I just pushed version 2.0.0.beta.2 which changes the loading mechanism to autoload. Would appreciate any time you have to check it out.

Thanks @tomwilshere, I appreciate the docs have gone out of order, but by now if you try to use the old gem it's going to break against the shut down API anyway. With a :+1: or two quickly, and a couple more pages of documentation to write, I can get this fully released and we can move beyond v1 of the gem and v2 and v3 of the Bitly API.

clarkritchie commented 4 years ago

👍 Just installed this in our dev environment and it seems to work great. Thanks!

sevenseacat commented 4 years ago

We're also using 2.0.0.beta.2 in our code and it's going well 👍

philnash commented 4 years ago

Amazing. I will look to release this tomorrow as the final version 2. Thanks to all who tested.

philnash commented 4 years ago

Version 2.0.0 is released!

Go forth and use Bitly API v4. And let me know if anything goes wrong or if I missed a spot.