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
https://forums.phpfreaks.com/topic/255290-not-able-to-create-api/
Share on other sites

Archived

This topic is now archived and is 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.