MyBB Community Forums

Full Version: Where to put this code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there, trying to add an API to my forum.

API - https://xboxapi.com/documentation
Forum - vpfl.club

$ curl -i -H "X-AUTH: 1709df2f4459dac2fad883e7fa2f2012b0069155" https://xboxapi.com/v2/accountXuid


HTTP/1.1 200 OK
Date: Sun, 26 April 2015 04:18:20 UTC

Cache-Control: no-cache
Access-Control-Allow-Origin: *
Content-Type: application/json
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 119
X-RateLimit-Reset: 2500

{"xuid":2535449752226614,"gamerTag":null,"gamertag":null}

The above is what i am being told to input on my site but i dont have a clue where to start. Can anyone help me with how i put this on my site?

If anyone has experience with this API and can help me get it implemented how we want we that would be greatly appreciated and we could no doubt work something out for this service.

Thanks, Danny
With that API, I don't think that's possible OP. As said on their website, a "terminal" is used when configuring this API.
But there is no terminal or anything to download and from speaking to the developer he seemed to make out like i had to do something with that code
(2015-04-26, 05:05 PM)danzoooo Wrote: [ -> ]But there is no terminal or anything to download and from speaking to the developer he seemed to make out like i had to do something with that code

Exactly. Depending on where you're hosting your forum from, terminals are used in OS X. I know there has been mods similar to this API, but it's just a matter of finding them. I can't think of anywhere, where you would put that code in your MyBB forum. I'm not sure what the developer has told you. Maybe quote word for word the conversation that took place?

Anyhow, take a look here http://lmgtfy.com/?q=mybb+xbox+api
Thanks for help so far. Would something like the following plugin work?

https://github.com/medbenji/MyBB-RESTful-API-System

And i would just upload the stuff in there?
Indeed that is a MyBB plugin Wink You will be able to use that on your board. To install a plugin, just upload the files to where it says in the zipped download.
Yeh i can upload plugins and stuff with no problem. I just dont have experience with APIs