Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SharpQuark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
015
SharpQuark
Commits
e0020783
Unverified
Commit
e0020783
authored
1 year ago
by
Amy
Browse files
Options
Downloads
Patches
Plain Diff
More generic readme example, remove emoji from readme, remove unused usings
parent
f7608aa7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
SharpQuark/Lightquark.cs
+1
-3
1 addition, 3 deletions
SharpQuark/Lightquark.cs
readme.md
+2
-2
2 additions, 2 deletions
readme.md
with
3 additions
and
5 deletions
SharpQuark/Lightquark.cs
+
1
−
3
View file @
e0020783
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
;
...
...
This diff is collapsed.
Click to expand it.
readme.md
+
2
−
2
View file @
e0020783
## 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"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment