philnash / bitly

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

passing title when creating link #66

Closed vibhoo closed 4 years ago

vibhoo commented 8 years ago

Hey! would love to know, how can I pass the title for the long URL, so that in future I can search based on the title & get short link

Thanks

philnash commented 8 years ago

Hi @vibhoo, what do you mean exactly? Is this is a function of the Bitly API itself or do you mean you would like to see it as part of the gem?

vibhoo commented 8 years ago

@philnash Bitly API has this functionality to provide title for the long URL which we are trying to shorten I think that this functionality is missing in the gem

philnash commented 8 years ago

Are you looking for an implementation of the link_save method?

This is one of the newer ones (at least, compared to this library). I could look into it, though if you have time to make a pull request that would be awesome. I'd be willing to help out if you wanted to look into it.

philnash commented 4 years ago

This is now possible in version 2 of the gem. Please check the docs for creating a new Bitlink.