Jump to content

Not able to create API...


subhomoy

Recommended Posts

Hii i want to create an api of the short url site ( http://torrentz.0fees.net ). In the api page it is says that

 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

 

I have created an form but not able to use it. The form script is shown below.

 

<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form> 

 

Whenever i'm putting the ( http://torrentz.0fees.net/index.php?api=1&return_url_text=1&longUrl={URL} )

it shows an error.

 

I know that the input url must be used in the ( {URL} ) section but how can i do that using php

 

Can anyone help me with code...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.