Get JSON response in Chat /Help/CS:GO
Hello, i am want to get JSON response in CS:GO Chat with *REST in Pawn - Communicate with JSON REST APIs* (i don't know how i can do this)
url = https://api.steampowered.com/ISteamU...XX&format=json example respone: {"response":{"players":[{"steamid":"000","communityvisibilitystate":0 ,"profilestate":0,"personaname":"Name","lastl ogoff":000,"profileurl":"URL","avatar":"URL", "avatarmedium":"URL","avatarfull":"URL","pers onastate":0,"primaryclanid":"000","timecreate d":000,"personastateflags":0}]}} i want to get user "steamid" after Connect and !me in Chat / PrintToChat. Can someone help me pls, thanks. |
Re: Get JSON response in Chat /Help/CS:GO
Quote:
Just use GetClientAuthId: PHP Code:
|
Re: Get JSON response in Chat /Help/CS:GO
thx, but i need to get a API JSON response the steamid was a example, i know i can do it with Sourcemod but need it through the Steam API.
|
Re: Get JSON response in Chat /Help/CS:GO
Need to test.
PHP Code:
|
Re: Get JSON response in Chat /Help/CS:GO
Quote:
the include file will give you an error, you have to replace all "in" parameters with something else. Also you might want to look into something more modern https://forums.alliedmods.net/showthread.php?t=298024, I haven't tested it yet but it looks pretty good. |
Re: Get JSON response in Chat /Help/CS:GO
Quote:
|
Re: Get JSON response in Chat /Help/CS:GO
Quote:
|
All times are GMT -4. The time now is 14:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.