sebonlien / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

Twitter use of bit.ly #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?
We're trying to use bit.ly to shorten URLs to our items while posting them
on Twitter. the link to twitter looks something like this (one line, long
URL is encoded):

1.
<a href="http://twitter.com/home?status={item_title} -
http://api.bit.ly/shorten?version=2.0.1&amp;login={mylogin}apiKey=R_{our_key}&lo
ngUrl={our_long_url}">LINK</a>

2.The item gets posted in twitter fine, and a short URL is presented, say
http://bit.ly/4Fn3ms

3.But when clicking on the above short link, we just get the response back:

{
    "errorCode": 0, 
    "errorMessage": "", 
    "results": {
        "http://{our_long_url}": {
            "hash": "5ZkR1z", 
            "shortKeywordUrl": "", 
            "shortUrl": "http://bit.ly/8vpdJu", 
            "userHash": "8pvdJu"
        }
    }, 
    "statusCode": "OK"
}

4.And then if I load the http://bit.ly/8vpdJu, it takes me to the item on
our portal.

What is the expected output? What do you see instead?

I guess my question is how do we integrate bit.ly to our twitter link
without going through the response, what we want is that the short link
posted in twitter take you to the item on our portal directly. Maybe we're
not doint the integration properly or this is more a twitter issue?

What version of the product are you using? On what operating system?
2.0.1

Please provide any additional information below.

Original issue reported on code.google.com by qren...@gmail.com on 22 Dec 2009 at 12:29

GoogleCodeExporter commented 8 years ago
this was resolved on the bitly-api discussion list

http://groups.google.com/group/bitly-api/browse_thread/thread/93e666794d293366

Original comment by jehiah on 28 Dec 2009 at 9:04