Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Shorten CPAN distribution.

Report information
The Basics
Id: 1539
Status: resolved
Worked: 5 min
Priority: 0/
Queue: WWW-Shorten

People
Owner: Nobody in particular
Requestors: shanx [...] shanx.com
Cc:
AdminCc: spoon [...] cpan.org

Bug Information
Severity: Normal
Broken in: 1.5.2
Fixed in: 1.5.4



Subject: Perl API for SnipURL
Dear Iain, My friend Eric Hammond informed me about the Perl API you have done for our web service. I just thought I'd drop a quick note to say thank you! Please let me know if you have any code samples that I can put up on our website. PPM (2.1.5) on my Windows box refuses to install the module. Thanks for any help. I have a couple of requests. 1. Could you please change the text in the description: "A Perl interface to the web site snipurl.com. SnipURL simply maintains a database of long URLs, each of which has a unique identifier. " to "A Perl interface to the web service SnipURL.com. SnipURL maintains a database of long URLs, each of which has a unique identifier or nickname. For more features, please visit http://snipurl.com/features" 2. You will notice that SnipURL has a few more functions than others. We have nicknames, private URLs which are not painfully dependent on a password per URL etc. Also, if a URL is spam-protected (e.g., http://snipurl.com/th) then it would be useful to make it to return a "Spam" identifier, not undef. I know it is too much for me to expect you to make these additions, but I would be happy to discuss them with you if you are interested. Thank you very much in advance! In any case, I really appreciate your effort, and have added you to our credits list: http://snurl.com/credits.php Best regards, Shashank
Heyo! [...] Show quoted text
> My friend Eric Hammond informed me about the Perl API you have done > for our web service. I just thought I'd drop a quick note to say > thank you!
Not a problem =) Just trying to have an API for all the ones I can find. Show quoted text
> Please let me know if you have any code samples that I can put up on > our website.
Nominally, the summary section of the documentation providse some sample code, just not necessarily anything practical beyond using the module and getting a snipped URL. However, I'll have 1.5 provide some scripts for doing some things. I'm thinking: parse a clean email and turn URLs into shorter links, or a command line program to take a URL and email it to someone as a short link. Any suggestions? Show quoted text
> PPM (2.1.5) on my Windows box refuses to install the module. > Thanks for any help.
Hmm. I don't run Windows myself so I can only provide indirect assistance here. Does it give any errors? Show quoted text
> I have a couple of requests. > > 1. Could you please change the text in the description: > [from this] to [that].
Done. Show quoted text
> 2. You will notice that SnipURL has a few more functions than others. > We have nicknames, private URLs which are not painfully dependent > on a password per URL etc.
Show quoted text
> Also, if a URL is spam-protected > (e.g., http://snipurl.com/th) then it would be useful to make > it to return a "Spam" identifier, not undef.
Hmm. I'd like it to still return undef, however I may make an error variable accessible. I'll think about it more as I examine the pros and cons. Show quoted text
> I know it is too much for me to expect you to make these additions,
Not at all. The aim is to be able to access most of the features for creating a URL from the module, so if that means adding support for login, then so be it =) Show quoted text
> but I would be happy to discuss them with you if you are interested.
I'll add more to this ticket if I have questions. The system should email you anything I put in here. The only thing I'd imagine wanting, for convenience rather than anything else, is what TinyURL has and NotLong shall have soon. And that's a interface geared for a program, i.e. no stylistic HTML for users, just simple text or similar for a program to handle so it doesn't have to work out where the data it wants is on the page. But it's not necessary, so don't worry about it unless you want to =) Show quoted text
> Thank you very much in advance!
=) Show quoted text
> In any case, I really appreciate your effort, and have added you to > our credits list: > http://snurl.com/credits.php
Most kind of you =) Could you make my name a link to http://eh.org/~koschei/ I think that's the real reason I do this sort of module: recognition =) Anyway, I could not have done it without the service itself =) 1.4.2 will appear on CPAN soon (48 hours) with the revised description. Or grab the tar.gz from http://perl.dellah.org/ - I don't know what to do with PPM packges. 1.5 will happen a bit later (sometime next week). Thanks for the advice. It's good to get feedback. cheers, -- Iain.
Hi Iain, Thanks for replying. I have sent you an email, but will include my response wthin this ticketing environment as well (I wonder if it is needed?) | The only thing I'd imagine wanting, for convenience | rather than anything else, ...that's a interface geared | for a program, i.e. no stylistic HTML for users, just | simple text or similar for a program to handle so it | doesn't have to work out where the data it wants is on the page. | We have had a "simple" version of the website since the beginning: http://snipurl.com/lynx.php For getting the longer URLs, I already have a page I use only for myself but you can use it too for this API. http://snipurl.com/resolveurl?id=89 (The ID querystring is the identifier) | Most kind of you =) Could you make my name a link to | http://eh.org/~koschei/ | Done! (but it seems to point to another website 'down under'? :)) | 1.4.2 will appear on CPAN soon (48 hours) with the | revised description. Mucho gracias! I will follow version 1.5 and make notes on our website, with a reference to you. We have the most elaborate statistics and searching of URLs, so if you are interested you can code a function to get back the popularity of a snipped URL etc. Anyway, thanks again for all your efforts. Best regards, Shashank SnipURL -- Snippety snip snip with your long URLs! www.snipurl.com | www.snurl.com