Contex / XenAPI

This PHP REST API allows usage of several of XenForo functions, such as authentication, user information and many more functions!
http://xenapi.net
GNU Lesser General Public License v3.0
99 stars 41 forks source link

Confused on how to setup #71

Open avsterbone opened 8 years ago

avsterbone commented 8 years ago

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.

bato3 commented 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');

marcfowler commented 8 years ago

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?

ghost commented 8 years ago

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

marcfowler commented 8 years ago

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!

ghost commented 8 years ago

Anytime 👍

anees21siddique commented 4 years ago

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.

bato3 commented 3 years ago

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