Skip to content
Snippets Groups Projects
Unverified Commit e0020783 authored by Amy's avatar Amy
Browse files

More generic readme example, remove emoji from readme, remove unused usings

parent f7608aa7
Branches
No related tags found
No related merge requests found
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;
......
## 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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment