Open avsterbone opened 8 years ago
Here: https://github.com/Contex/XenAPI/blob/master/net/xenapi/XenAPI/api.php#L20
$restAPI = new RestAPI('REPLACE_THIS_WITH_AN_API_KEY');
Hi @bato3 - how do you actually get the API key though? I can't seem to find anything - is that in a settings menu somewhere?
The API key is not set or generated automatically anywhere - it's something you define yourself.
I see - I define it, hard-code it into this extension, and then provide it when calling it from a remote script which confirms that it's valid. I'm with you. Cheers!
Anytime 👍
hi can you guys please guide me where is xenforo root because I define that API in xenforo below .htaccess file and when I am hinting this API I got 500 error.
@anees21siddique You know, this is for Xenforo 1.5. From v2.1 you can use native REST API .
And root
is on this sale place as index.php
, login.php
etc...
I am extremely confused on how to get my API key. I have installed the api.php file in my Xenforo root, but don't know what to do from there. Please help, thanks.