What parameters are you using?When using getPost, I get the error "Fatal error: Call to a member function getData() on a non-object in /home/tekkify/public_html/api.php on line 2730". Any ideas?
Edit: Same happens with getThread.
Does your web server replace .php? If not, you're missing a .php after "api".I'm trying to use XenAPI to perform authentication for another application I'm working on, so this application and the website use the same usernames and passwords. I'm trying to use the Authenticate method, but I constantly get "(400) Bad Request" as a response. I've tried using both a raw URL in my web browser, and using a .NET WebClient from a small C# app. I've also tried against an internal XenForo install running on IIS 7.0 and my live website probably running in a sandboxed Linux VM.
The format I'm using is http://urlToMySite/forums/api?action=authenticate&username=MyUser&password=MyPass". Any ideas?
http://urlToMySite/forums/api.php?action=authenticate&username=MyUser&password=MyPass
Does your web server replace .php? If not, you're missing a .php after "api".
Code:http://urlToMySite/forums/api.php?action=authenticate&username=MyUser&password=MyPass
What does the server log of the web server say?Sorry, that was a typo. I do have the .php in the url in my test code.
What does the server log of the web server say?
You're using the correct arguments
{"hash":"$2a$10$1xRj4owE6WBM.v8ZObiNpOGY8d\/tDLA\/lTisRu8nTPZDV4Ic16TX6"}
{"error":6,"message":"\"userx:$2a$10$1xRj4owE6WBM.v8ZObiNpOGY8d\\\/tDLA\\\/lTisRu8nTPZDV4Ic16TX6\" is not a valid hash"}
I reckon XF updated their hashing methods (looks like PHPass) and I sadly do not have the time to update the project any further anymore as I have other projects that have deadlines.Hi,
This is a great API, but I just have a problem.
I created 3 users. I don't have problem for 2 users (authenticate, and getUser with hash).
But with the last I created, authentification works, I get the hash, but the hash is incorrect.
For authentification I got :
https://xxxxx.com/api.php?action=authenticate&username=userx&password=azerty123
PHP:{"hash":"$2a$10$1xRj4owE6WBM.v8ZObiNpOGY8d\/tDLA\/lTisRu8nTPZDV4Ic16TX6"}
And when I try to get user details with :
https://xxxxx.com/api.php?action=ge...BM.v8ZObiNpOGY8d\/tDLA\/lTisRu8nTPZDV4Ic16TX6
PHP:{"error":6,"message":"\"userx:$2a$10$1xRj4owE6WBM.v8ZObiNpOGY8d\\\/tDLA\\\/lTisRu8nTPZDV4Ic16TX6\" is not a valid hash"}
Have you an idea please ?
We're looking to build a very basic android app for our site, that's just the web version, plus xenforo alerts go to android notifications. Will this work for getting the alerts?
This should be fixed in the next version of XenAPI, see commit here: https://github.com/Contex/XenAPI/commit/3b6e632afaeb0d8e505a3e4c0fd1a78180beb55bHave you an idea please ?
I've added the ability to edit trophy_points in the next version of the API: https://github.com/Contex/XenAPI/commit/e584427ce61e40497451ec512c570ce8c0c44061Is it possible to edit a users trophy_points with this? Via: https://github.com/Contex/XenAPI/wiki/REST-API-Actions#editUser
We are interested in syncing an external database of points from our application with xenforo's trophy_points.
We use essential cookies to make this site work, and optional cookies to enhance your experience.