API not working!

Post here is you are having problems with any of the tutorials.
Post Reply
gurnz
Posts: 1
Joined: Sun Sep 02, 2012 5:26 pm

API not working!

Post 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.
Attachments
public_api.zip
(5.88 KiB) Downloaded 94 times
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: API not working!

Post 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 ?
Image
Post Reply