Jump to content

Can anyone help me...


subhomoy

Recommended Posts

API

 

Our API allows you to provide short url functionality to any of your existing websites.

 

Url Only

To generate a url via the API, send a POST or GET request to the site in the following format:

 

- http://torrentz.0fees.net/index.php?api=1&return_url_text=1&longUrl={URL}

 

This site will then generate the short url and return it as plain text. i.e:

 

- http://torrentz.0fees.net/a1

 

Generate & Redirect

If you remove the return_url_text param the user will be redirected to the results page on this site instead of just the url text being returned.

 

Extra Params:

You can also set extra information on each short url, the supported params are:

 

customUrl => Custom short url.

shortUrlPassword => Password to access the url.

shortUrlExpiryDate => Expiry date in the formay DD-MM-YYYY HH:II:SS.

shortUrlUses => Total permitted uses before expiring.

postToTwitter => Set to 1 to auto redirect to Twitter.

 

NOTE: Any url requests via the API are subject to our normal spam protection measures and hence there may be limits to the amount of short urls that can be generated in any period.

 

Seems fairly clear to me, that you simply need to pass one parameter:

 

http://torrentz.0fees.net/index.php?api=1&return_url_text=1&longUrl=

 

What you get in response is their shortened url in the body of an html document.  You could use fopen() or the curl extension to do this in a script and get the response.

Link to comment
Share on other sites

What you get in response is their shortened url in the body of an html document.  You could use fopen() or the curl extension to do this in a script and get the response.

 

Can you plz plz give the source code. i know very little about php. or can you give the souce to find that code...

 

Thanks in advance...

Link to comment
Share on other sites

What you get in response is their shortened url in the body of an html document.  You could use fopen() or the curl extension to do this in a script and get the response.

 

Can you please please give the source code. i know very little about php. or can you give the souce to find that code...

 

Thanks in advance...

 

Sorry, but that is not what we do here.  We help people who are trying to code with specific problems that they have, or advice on better approaches.  We are not a free coding service.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.