Page 1 of 1

API not working!

Posted: Sun Sep 02, 2012 5:30 pm
by gurnz
I was watching the developer api and i have been having problems with something. I dont really know what is going wrong with the code but when ever i try to use the two functions to post data to the api.php file. No real data is sent back it is just the help information telling what shorten and lookup do when you post them. The code will be attached below.

Re: API not working!

Posted: Tue Sep 04, 2012 12:47 pm
by jacek
First thing I noticed
const API_URL = 'http://192.168.1.80/projects/public_api ... te/api.php';
which was the IP of my local server at the time, is this actually the URL you are using ?

Try browsing to api.php and see if you see any errors or things that look wrong ?