Raised This Month: $51 Target: $400
 12% 

[Any] Need help with HTTP requests


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ElectricStalin
Member
Join Date: Apr 2017
Old 05-24-2017 , 05:07   [Any] Need help with HTTP requests
Reply With Quote #1

Hi guys. I almost finished my plugin, but the most difficult part remained: integration with the web. I need to make 5 different requests, get results from web api and use results in plugin. It would be great, if somebody helps me with the simplest: i need to get list of steamIDs and check on every players connection on this list. The servers answer is somethig like this:
Code:
"name": "get-game",
			"request": {
				"url": "127.0.0.1:8000/api/get-game/",
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "port",
							"value": "2222",
							"type": "text",
							"enabled": true
						},
						{
							"key": "ip",
							"value": "127.0.0.1",
							"type": "text",
							"enabled": true
						},
						{
							"key": "steam_ids",
							"value": "[\"76561198332352541\", \"76561198332352542\", \"76561198332352543\"]",
							"type": "text",
							"enabled": true
						},
						{
							"key": "game_id",
							"value": "1",
							"type": "text",
							"enabled": true
						}
					]
				},
				"description": ""
			},
			"response": []
I do not even know where to start. I really hope for your help.
ElectricStalin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode