Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused on how to setup #71

Open
avsterbone opened this issue Aug 27, 2016 · 7 comments
Open

Confused on how to setup #71

avsterbone opened this issue Aug 27, 2016 · 7 comments

Comments

@avsterbone
Copy link

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
Copy link

bato3 commented Sep 17, 2016

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

@marcfowler
Copy link

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
Copy link

ghost commented Sep 25, 2016

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

@marcfowler
Copy link

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
Copy link

ghost commented Sep 25, 2016

Anytime 👍

@anees21siddique
Copy link

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
Copy link

bato3 commented Nov 19, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants