Skip to content

Instantly share code, notes, and snippets.

View TobiasBerg's full-sized avatar
🎮

Tobias Berg TobiasBerg

🎮
View GitHub Profile
@TobiasBerg
TobiasBerg / GetPlayerStorage.cs
Created January 22, 2021 12:18
C# Get Player Storage
var client = new RestClient("https://api.lootlocker.io/game/v1/player/storage");
var request = new RestRequest(Method.GET);
request.AddHeader("x-session-token", "your session token");
IRestResponse response = client.Execute(request);
@TobiasBerg
TobiasBerg / WriterPlayerStorage.cs
Created January 22, 2021 12:17
C# Write Player Storage
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");
@TobiasBerg
TobiasBerg / auth.cs
Created January 22, 2021 12:10
C# Authenticate Example
SessionPayload payload = new SessionPayload();
payload.game_key = "your game api key";
payload.player_identifier = "1c066e0d-b746-489e-8fd3-5a4e93e92c3e";
payload.platform = "steam";
payload.game_version = "1.0.0";
String requestBody = payload.ToJSON();
var client = new RestClient("https://api.lootlocker.io/game/v2/session");
var request = new RestRequest(Method.POST);

Keybase proof

I hereby claim:

  • I am tobiasberg on github.
  • I am tobiasberg (https://keybase.io/tobiasberg) on keybase.
  • I have a public key ASAXxRI3w_HdImpt-IcRtILN2K689HLTudJ0ZL3yIlGSvgo

To claim this, I am signing this object:

@TobiasBerg
TobiasBerg / destroyed.md
Last active August 29, 2015 14:17
Functionality Spotify have removed in latest release

Features Spotify have dropped in the latest version

With the latest release of Spotify for Desktop (12 Mar 2015) we've seen a lot of functionality removed from the client.

  • Search in playlists.
  • Support for editing meta data for local files.
  • Support for adding local files to spotify from finder.
  • playlist dividers/separators in left sidebar are no longer working.
  • Viewing a folder with subfolders now shows a list of folders instead of all songs contained in those folders.
  • No longer possible to resize columns in playlists.