I am trying to link some data between my website and my game with the API. However, I am in need of help because I am a newbie with little to no coding experience.
Â
For context, I tried digging through some old forum posts to see if I could find any existing code I could use to test out and learn from, which I eventually did (but it's not working for some reason):
In the post below, I saw that someone had written some PHP code with two functions. It kind of made sense to me because they had a function that gets the access token, as well as another function to send global messages to the game--which then takes the token when calling it.Â
Â
Again, I don't really know what I'm doing wrong. Maybe it's just me being a dummy? The messages aren't being sent to my game, nor am I seeing anything on my webpage through my webserver. I'm also hosting my game on a VPS.
Here's some additional info:
I'm using the files from Github for my server and client (not sure if I'm supposed to do that). The only reason why I did that is because I wanted to change my game's icon.
I tried getting the access token from the terminal window, and it worked just fine. Why am I having trouble now?
This is probably useless info, but I am getting this code when using Postman:
Â
Â
Â
Â
Â
Hopefully, the smart people here can give me a hand .
Question
Reddoman
Hi guys,
I am trying to link some data between my website and my game with the API. However, I am in need of help because I am a newbie with little to no coding experience.
Â
For context, I tried digging through some old forum posts to see if I could find any existing code I could use to test out and learn from, which I eventually did (but it's not working for some reason):
In the post below, I saw that someone had written some PHP code with two functions. It kind of made sense to me because they had a function that gets the access token, as well as another function to send global messages to the game--which then takes the token when calling it.Â
Â
Again, I don't really know what I'm doing wrong. Maybe it's just me being a dummy? The messages aren't being sent to my game, nor am I seeing anything on my webpage through my webserver. I'm also hosting my game on a VPS.
Here's some additional info:
Â
Â
Â
Â
Â
Hopefully, the smart people here can give me a hand .
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now