From e00207835ae2fa6e0d9b1670504ebad2d3f8bb2d Mon Sep 17 00:00:00 2001 From: Amy <amy@litdevs.org> Date: Sun, 11 Feb 2024 15:58:29 +0200 Subject: [PATCH] More generic readme example, remove emoji from readme, remove unused usings --- SharpQuark/Lightquark.cs | 4 +--- readme.md | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/SharpQuark/Lightquark.cs b/SharpQuark/Lightquark.cs index a9cb0f3..86cb2ea 100644 --- a/SharpQuark/Lightquark.cs +++ b/SharpQuark/Lightquark.cs @@ -1,8 +1,6 @@ -using System.Diagnostics; -using System.Net.Http.Headers; +using System.Net.Http.Headers; using System.Reflection; using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using SharpQuark.Token; namespace SharpQuark; diff --git a/readme.md b/readme.md index 18b5b4a..a860e14 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ ## C# API Wrapper for the Lightquark API > [!WARNING] -> ⚠️ Supports API Versions V3 and up. V1 and V2 **ARE NOT** and **WILL NOT** be supported +> Supports API Versions V3 and up. V1 and V2 **ARE NOT** and **WILL NOT** be supported ### Usage @@ -15,7 +15,7 @@ var netInfo = await NetworkInformation.GetNetwork("https://equinox.lightquark.ne // To log in or make any other API calls we need to get the access and refresh tokens, which can be done in two // different ways. For example with email and password: -var tokens = await TokenCredential.Login("testuser@litdevs.org", "wordpass", netInfo); +var tokens = await TokenCredential.Login("email", "password", netInfo); // Or alternatively stored tokens can be used to get the TokenCredential directly, for example from strings: var tokens2 = new TokenCredential((AccessToken)Token.From("access token"), (RefreshToken)Token.From("refresh token")); -- GitLab