| View previous topic :: View next topic |
| Author |
Message |
Voltron43
Joined: 27 Mar 2009 Posts: 76 Location: Dublin, IE
|
Posted: Sun Jun 21, 2009 1:19 pm Post subject: |
|
|
| n-l-i-d wrote: | | Could you add the "Optional Custom Name" option for when creating a short url? |
Keywords are now supported in v0.1.2. It returns "The custom keyword you tried to use was already used by someone else" if the keyword is already used.
| Code: | val := bitly_shorten("http://cnn.com","keyword","cnn")
Msgbox, % val |
_________________ My Scripts |
|
| Back to top |
|
 |
wadu Guest
|
Posted: Sat Aug 29, 2009 6:16 pm Post subject: You must be authenticated to access shorten |
|
|
Not sure what I'm doing wrong but I keep getting
"You must be authenticated to access shorten".
I've tried with no user, with the bitlyapidemo and my own user and I keep getting the same message. |
|
| Back to top |
|
 |
Voltron43
Joined: 27 Mar 2009 Posts: 76 Location: Dublin, IE
|
Posted: Sat Aug 29, 2009 6:22 pm Post subject: Re: You must be authenticated to access shorten |
|
|
| wadu wrote: | Not sure what I'm doing wrong but I keep getting
"You must be authenticated to access shorten". |
It works for me when using Example I.
| Code: | #Include bitlyAPI.ahk
login := "bitlyapidemo"
apiKey := "R_0da49e0a9118ff35f52f629d2d71bf07"
val := bitly_shorten("http://cnn.com",1)
MsgBox, % val |
Could you post the code that is giving you the error? _________________ My Scripts |
|
| Back to top |
|
 |
wadu Guest
|
Posted: Sat Aug 29, 2009 7:23 pm Post subject: |
|
|
I think the problem lies within the url transformation. The method doesn't seem to do URL encoding but rather do a hex+base64 encoding.
The moment the url contains # or & the query starts to fall and in some cases, throws the authentication problem maybe due to the 'encoding' scheme.
| Code: |
#Include bitlyAPI.ahk
login := "bitlyapidemo"
apiKey := "R_0da49e0a9118ff35f52f629d2d71bf07"
val := bitly_shorten("http://www.google.com/#hl=en&q=michael+jackson",1)
MsgBox, % val
|
Returns nothing. Is there a reason why the URL encoding/decoding script found on the forum is not used? |
|
| Back to top |
|
 |
wedu Guest
|
Posted: Sat Aug 29, 2009 7:23 pm Post subject: |
|
|
| Forgot to say - thanks for the quick reply! |
|
| Back to top |
|
 |
Voltron43
Joined: 27 Mar 2009 Posts: 76 Location: Dublin, IE
|
Posted: Sat Aug 29, 2009 7:35 pm Post subject: |
|
|
| wadu wrote: | | The moment the url contains # or & the query starts to fall and in some cases, throws the authentication problem maybe due to the 'encoding' scheme. |
Try add a number sign '#' to line 158 of bitlyAPI.ahk
| Code: | | ascii=?&+=# ; strings to convert to hex |
Thanks for the catch.  _________________ My Scripts |
|
| Back to top |
|
 |
wedu Guest
|
Posted: Sat Aug 29, 2009 7:59 pm Post subject: thanks! |
|
|
Cool - thanks! That fixed it. Would it be possible to add a leading http:// in case it's missing?
For example if I type just google.com (instead of http://google.com) I get a blank answer.
Cheers |
|
| Back to top |
|
 |
Voltron43
Joined: 27 Mar 2009 Posts: 76 Location: Dublin, IE
|
Posted: Sat Aug 29, 2009 8:08 pm Post subject: Re: thanks! |
|
|
| wedu wrote: | ...Would it be possible to add a leading http:// in case it's missing?
For example if I type just google.com (instead of http://google.com) I get a blank answer. |
Let me look into it. _________________ My Scripts |
|
| Back to top |
|
 |
wedu Guest
|
Posted: Wed Sep 02, 2009 4:54 pm Post subject: |
|
|
Any update?
Thanks |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
|
| Back to top |
|
 |
wedu Guest
|
Posted: Wed Sep 09, 2009 11:24 am Post subject: |
|
|
| I'll try to hack the script myself but if the improvement would make its way to the original script, then all the other downloaders would benefit from it. |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sun Sep 20, 2009 11:16 am Post subject: |
|
|
LongURL
| Quote: | | Avoid phishing, malware, and viruses by examining short URLs before visiting them. Find out where links really take you. |
LongURL provides a simple RESTful API to allow application developers to easily use its service.
Example call: http://api.longurl.org/v2/expand?url=http%3A%2F%2Fis.gd%2Fw
Supports over 200 shortening sites.
 |
|
| Back to top |
|
 |
Voltron43
Joined: 27 Mar 2009 Posts: 76 Location: Dublin, IE
|
Posted: Tue Sep 22, 2009 9:47 pm Post subject: |
|
|
Added j.mp support to To-Do list. _________________ My Scripts |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Feb 12, 2011 9:03 pm Post subject: |
|
|
| is this still working for anyone? |
|
| Back to top |
|
 |
|