Answer the question
In order to leave comments, you need to log in
How to send a request to the website API?
I have a C# Windows forms, 4.6 .Net framework project. I need to get variables from the site's API to put a value in a textbox.
// Performing JS requests to the required API.
// Connection
For example, if the URL looks like servers-samp.ru/server-6 , then its ServerID = 6.
<script src="http://servers-samp.ru/api/174106"></script> // 174106 мой ID
<script>document.write(info.players);</script> / <script>document.write(info.maxplayers);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question