Created
January 22, 2021 12:17
-
-
Save TobiasBerg/b85f710cacd2322d2f00d9004fb07fd2 to your computer and use it in GitHub Desktop.
C# Write Player Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PlayerStoragePayload payload = new PlayerStoragePayload(); | |
payload.order = 1; | |
payload.key = "characterColor"; | |
payload.value = "0,193,82"; | |
String requestBody = payload.ToJSON(); | |
var client = new RestClient("https://api.lootlocker.io/game/v1/player/storage"); | |
var request = new RestRequest(Method.POST); | |
request.AddHeader("Content-Type", "application/json"); | |
request.AddHeader("x-session-token", "your session token"); | |
request.AddParameter("application/json", requestBody, ParameterType.RequestBody); | |
IRestResponse response = client.Execute(request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment