Skip to content

Instantly share code, notes, and snippets.

View TobiasBerg's full-sized avatar
🎮

Tobias Berg TobiasBerg

🎮
View GitHub Profile
@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.

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 / 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);
@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 / 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 / Auth.c
Created January 22, 2021 12:22
C Authenticate Example
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(curl, CURLOPT_URL, "https://api.lootlocker.io/game/v2/session");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
struct curl_slist *headers = NULL;
@TobiasBerg
TobiasBerg / GetPlayerStorage.c
Created January 22, 2021 12:23
C Get Player Storage Example
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.c
Last active January 22, 2021 12:27
C Write Player Storage
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(curl, CURLOPT_URL, "https://api.lootlocker.io/game/v1/player/storage");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Content-Type: application/json");
@TobiasBerg
TobiasBerg / Auth.sh
Created January 22, 2021 12:28
Bash Authenticate Example
curl -X POST 'https://api.lootlocker.io/game/v2/session' \
-H 'Content-Type: application/json' \
-d '{
"game_key": "your game api key",
"platform": "ios",
"player_identifier": "93c2e0e2-e399-41a1-af86-a9e1d0189b77",
"game_version": "1.0.0",
"development_mode": "false"
}
@TobiasBerg
TobiasBerg / GetPlayerStorage.sh
Created January 22, 2021 12:29
Bash Get Player Storage Example
curl -X GET 'https://api.lootlocker.io/game/v1/player/storage' \
-H 'x-session-token: your session token'