haxball / haxball-issues

116 stars 44 forks source link

Sending data into other webstie #635

Open Trusiak opened 6 years ago

Trusiak commented 6 years ago

Hello

How is the best way of sending data (ranking) to other website? I created a site with daily ranking, which is update manually by me every 24 hours. Haxball server is running of another VPS with windows (on chrome). Is there any posibilites to display ranking at .json, so i can get this e.g by ajax? Maybe you know different way's?

olehmisar commented 6 years ago

If your ranking is an object or array of objects, you can use JSON.stringify(ranking). It will convert ranking object into JSON string.

Trusiak commented 6 years ago

i know, i dont have problem with convert a data. I have problem with sending the data from haxball running server into another hosting. How to do that? I mean, i can't just post the data into my URL.
Server is already running in a VPS with windows on chrome. How exactly put my data outside?

olehmisar commented 6 years ago

You can use fetch API. Here are examples of how to use it.

Jeremy78u commented 6 years ago

Jest do ciebie jakiś kontakt mg ci to zrobić :)

Trusiak commented 6 years ago

GG: 6582689

wt., 27 lis 2018 o 19:33 Jeremy78u notifications@github.com napisał(a):

Jest do ciebie jakiś kontakt mg ci to zrobić :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haxball/haxball-issues/issues/635#issuecomment-442167669, or mute the thread https://github.com/notifications/unsubscribe-auth/AY3ZmY9Tt6A4w3TfTgKiwb8wJOuqrZ0tks5uzYWMgaJpZM4Y1QbH .

Jeremy78u commented 6 years ago

ok przyjmij

ghost commented 5 years ago

@Jeremy78u Please give me your Discord. I need to talk with you on that data situation.

ghost commented 5 years ago

@Trusiak I've sent you an e-mail. Please check. Subject name is: ABOUT HAXBALL HEADLESS