API Examples
Posted: Mon May 04, 2020 7:27 pm
I've set up a website using the latest WordPress (www.splashpoker.org) for the support for my poker site (splash.poker). The wordpress site has structure sheets, tournament results, information, etc. I thought it would be nice to implement some of the sample API functions (on a private page, only for admins) to display results, etc. So I installed a plugin that allows me to embed php scripts (Insert PHP Code Snippet), and I installed the API.php file (modified for my site, with my password) in the plugin directory, so I don't get a file-not-found error.
No matter which sample script I try, I get an error. I thought I would try purposely messing up the password in API.php to see if that caused it to not connect, but it changed nothing-- Error.
I am running php 7.3 and (as far as I've been able to determine) curl is enabled. Is there any script that would simply allow me to verify that API.php is responding correctly? I have seen errors (which I can't reproduce right now) suggesting that the JSON response was not formatted properly.
I don't think this is a problem with any of your code. I think either I'm doing something fundamentally wrong or there is some sort of compatibility issue.
Any help or direction would be sincerely appreciated.
No matter which sample script I try, I get an error. I thought I would try purposely messing up the password in API.php to see if that caused it to not connect, but it changed nothing-- Error.
I am running php 7.3 and (as far as I've been able to determine) curl is enabled. Is there any script that would simply allow me to verify that API.php is responding correctly? I have seen errors (which I can't reproduce right now) suggesting that the JSON response was not formatted properly.
I don't think this is a problem with any of your code. I think either I'm doing something fundamentally wrong or there is some sort of compatibility issue.
Any help or direction would be sincerely appreciated.