Author Topic: Unleashing a HTTP-based API for the Soldat Lobby  (Read 42431 times)

0 Members and 1 Guest are viewing this topic.

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #20 on: March 22, 2019, 05:09:17 pm »
Excellent API!

Cannot get it work directly by CORS, i have to use a proxy to add the header 'Access-Control-Allow-Origin'.
I make a phone app to see who is playing in my server.

Attached is an app's screenshot .

Greetings!


Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #21 on: March 23, 2019, 10:32:24 am »
Hi!

New version off my phone app show all servers and their players.
Screenshot attached.

Greetings!

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #22 on: March 23, 2019, 11:55:54 am »
Hi!

New version off my phone app show all servers and their players.
Screenshot attached.

Greetings!
Dude, you know that if someone wants to use it, needs an installer file - not a screenshot xD

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #23 on: March 23, 2019, 12:21:38 pm »
Hahaha sure!
I'm preparing the app to publish here.

Greetings!

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #24 on: March 23, 2019, 02:23:41 pm »
Hi!

I published the servers phone app in this post: https://forums.soldat.pl/index.php?topic=45287.0

Greetings!

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #25 on: March 28, 2019, 12:22:53 am »
Cannot get it work directly by CORS, i have to use a proxy to add the header 'Access-Control-Allow-Origin'.

Fixed. It now adds the appropriate header to any given origin, rather than just soldat.pl
There are other worlds than these

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #26 on: March 28, 2019, 10:26:54 am »
Cannot get it work directly by CORS, i have to use a proxy to add the header 'Access-Control-Allow-Origin'.

Fixed. It now adds the appropriate header to any given origin, rather than just soldat.pl

Excellent! Now is working good.

Greetings.

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #27 on: July 03, 2019, 03:23:24 pm »
Hi!

The endpoint "/players" in the api is throwing an 403 Forbidden error.
A GET screenshot is attached.

Thank you!

Greetings.

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #28 on: July 05, 2019, 05:30:49 am »
We are aware of the situation.
Why do you need access to that endpoint?
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #29 on: July 05, 2019, 09:26:39 am »
Hello!

Please i need that endpoint because my soldat servers mobile app uses it to show the players on the servers and their users report me it stop working.

Here is the forum post of the app:

https://forums.soldat.pl/index.php?topic=45287.msg532145#msg532145

And here is the app published in Google Play:

https://play.google.com/store/apps/details?id=soldat.servers.app

Thank you in advance!

Greetings.

Offline Moroes

  • Soldier
  • **
  • Posts: 165
    • Soldat-Game.eu
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #30 on: July 09, 2019, 03:03:39 pm »
I need access to that endpoint for my spying activities, thanks. :)

Offline surfersat

  • Major(1)
  • Posts: 23
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #31 on: April 06, 2020, 12:15:05 pm »
I made a new phone app from scratch  ;D

Here is the post link on the forum: https://forums.soldat.pl/index.php?topic=45287.msg532588#msg532588

Enjoy, greetings and thanks again for the api!

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #32 on: April 06, 2020, 12:46:11 pm »

Offline Pevik

  • Major(1)
  • Posts: 2
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #33 on: April 24, 2020, 06:39:25 am »
Some time have passed... and I'm just making a Discord bot the easy way, wanted to use http api you created here. It would be aweome to have it updated with more features, like more info on players, current caps/points, time left, players country etc...

Great job, anyway! Thanks for your time :)

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #34 on: April 24, 2020, 06:59:29 pm »
Some time have passed... and I'm just making a Discord bot the easy way, wanted to use http api you created here. It would be aweome to have it updated with more features, like more info on players, current caps/points, time left, players country etc...

Great job, anyway! Thanks for your time :)

Hey, thanks for the kind words. It isn't currently possible for the API to display the additional info you mentioned as the soldat server doesn't currently provide that info to the lobby.
There are other worlds than these

Offline monacocoffee

  • Major(1)
  • Posts: 2
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #35 on: May 26, 2023, 02:34:33 am »

<a href ="https://monacocoffee.com.vn/setup-quan-cafe/"> setup qu?n cafe</a>
I loved this content. Thanks for creating it. I?m a big supporter of your stuff.

Offline monacocoffee

  • Major(1)
  • Posts: 2
Re: Unleashing a HTTP-based API for the Soldat Lobby
« Reply #36 on: May 26, 2023, 02:35:06 am »

<a href ="https://monacocoffee.com.vn/setup-quan-cafe/"> setup qu?n cafe</a>
I loved this content. Thanks for creating it. I?m a big supporter of your stuff.