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

jmp_url seems not work. #6

Closed
sjoonk opened this issue Dec 25, 2010 · 1 comment
Closed

jmp_url seems not work. #6

sjoonk opened this issue Dec 25, 2010 · 1 comment

Comments

@sjoonk
Copy link

sjoonk commented Dec 25, 2010

I use bitly version 3.
when i call #short_url on bitly it work perfectly.
but call #jmp_url not work. An error occurred.

bitly.shorten("http://google.com/123/456").jmp_url
NoMethodError: undefined method `jmp_url' for #Bitly::V3::Url:0x108e9b908
from (irb):2

How can I do it??

@philnash
Copy link
Owner

The jmp_url has been removed from the version 3 part of the gem. You can get a j.mp url though, by passing a domain option to the shorten method, like so:

url = bitly.shorten('http://mylonglink.com', :domain => 'j.mp')
url.short_url
#=> "http://j.mp/hXIANu"

This issue was closed.
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