Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6

Thread: TinyURL API :)

  1. #1
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default TinyURL API :)

    Not sure if anyone has seen this, I found it the other day thought it might come in handy to someone on a project.

    Habbox is stupid.. remove the * from the URL's

    http://tinyurl*.com/api-create.php?u...ameiscaleb.com

    Returns a tinyurl for a long url.


    Example:

    PHP Code:
    <?php

    $longURL 
    "http://www.mysite.com/directory/gdsofksjlfsdfs/dsfsdjdfklsdj.html";
    $domain = @file_get_contents"http://tinyurl*.com/api-create.php?url=http://{$longURL});

    // $domain is now the TinyURL provided to us.. 


    echo $domain;

    ?>
    Last edited by Dentafrice; 21-11-2008 at 01:46 AM.

  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    I knew there must be a tinyurl API because twitterbar and other toolbars and stuff, but I couldn't find the link to it on tinyurl, and googling takes so much effort
    Now I just need to find a use for it...

  3. #3
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Trinity View Post
    I knew there must be a tinyurl API because twitterbar and other toolbars and stuff, but I couldn't find the link to it on tinyurl, and googling takes so much effort
    Now I just need to find a use for it...
    Wow, good find. Will be pretty useful.

  4. #4
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Basically does it let you cover a really long URL (e.g. www.site.com/dafvjcvcscv/final_page.html) with a short one (e.g. www.site.com/final_page.html)? Or am I just missing the point?

    I don't really get it, but why is Habbox stupid anyway?

  5. #5
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Robald View Post
    Basically does it let you cover a really long URL (e.g. www.site.com/dafvjcvcscv/final_page.html) with a short one (e.g. www.site.com/final_page.html)? Or am I just missing the point?

    I don't really get it, but why is Habbox stupid anyway?
    No, say you're trying to rick roll someone or need a short link..

    You use TinyURL, and get the link (it would be something like ************/23jtiog) and you give that link out, they go on it and it redirects to the page that you set.

  6. #6
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    No, say you're trying to rick roll someone or need a short link..

    You use TinyURL, and get the link (it would be something like ************/23jtiog) and you give that link out, they go on it and it redirects to the page that you set.
    Oh right. And I think I just realised he was talking about the forum not letting him post what he wanted so he had to use the asterixes (*). I thought they were relevant .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •