sebonlien / bitly-api

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

API end-points works incorrect for users with "_" in login. #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have signed up with my Twitter account. I have "_" in my login.
When I try to call something end-point I get error 500 (INVALID_LOGIN) every 
times. Looks like it is happened because user login can contain only letters or 
numbers.

Please correct me if I am wrong.

Thanks.

Original issue reported on code.google.com by alex.ole...@gmail.com on 15 Aug 2011 at 10:56

GoogleCodeExporter commented 8 years ago
Hi Alex. What is the exact http endpoint you are querying?

Original comment by jehiah on 15 Aug 2011 at 2:06

GoogleCodeExporter commented 8 years ago
Hi!

Actually I think that endpoint doesn't matter.

So, I have tried to call shorten endpoint.
Please see my request below:

http://api.bitly.com/v3/shorten?login=alex_oleksenko&apiKey=<MY_API_KEY>=http%3A
%2F%2Fwww.google.com&format=json

Thanks.

Original comment by alex.ole...@gmail.com on 15 Aug 2011 at 2:15

GoogleCodeExporter commented 8 years ago
Thanks for the details. If you signed up with bitly via your twitter login, 
that is actually not your actual bitly username. You can find your bitly 
username at http://bitly.com/a/your_api_key. (we are looking to improve the 
wording around this as we move more API endpoints to Oauth2)

Original comment by jehiah on 15 Aug 2011 at 2:23

GoogleCodeExporter commented 8 years ago
Thanks.

I have checked and it works fine.

As I understand I cannot use my Twitter username for API calls in any way. Am I 
correct?
Is there any way to get my actual bitly username from my Twitter username via 
some API call?

Original comment by alex.ole...@gmail.com on 15 Aug 2011 at 2:36