XenAPI icon indicating copy to clipboard operation
XenAPI copied to clipboard

Confused on how to setup

Open avsterbone opened this issue 9 years ago • 7 comments

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.

avsterbone avatar Aug 27 '16 16:08 avsterbone

Here: https://github.com/Contex/XenAPI/blob/master/net/xenapi/XenAPI/api.php#L20 $restAPI = new RestAPI('REPLACE_THIS_WITH_AN_API_KEY');

bato3 avatar Sep 17 '16 17:09 bato3

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?

marcfowler avatar Sep 25 '16 13:09 marcfowler

The API key is not set or generated automatically anywhere - it's something you define yourself.

ghost avatar Sep 25 '16 13:09 ghost

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!

marcfowler avatar Sep 25 '16 13:09 marcfowler

Anytime 👍

ghost avatar Sep 25 '16 13:09 ghost

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 avatar Oct 24 '20 16:10 anees21siddique

@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...

bato3 avatar Nov 19 '20 16:11 bato3