-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix replacement issue with dollar signs.
- Loading branch information
1 parent
47bf4b8
commit 851db56
Showing
6 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@torchlight-api/torchlight-cli", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A CLI for Torchlight - the syntax highlighting API", | ||
"main": "index.js", | ||
"scripts": { | ||
|
@@ -14,6 +14,11 @@ | |
"highlighting", | ||
"torchlight" | ||
], | ||
"standard": { | ||
"ignore": [ | ||
"tests" | ||
] | ||
}, | ||
"author": "Aaron Francis <[email protected]> (https://torchlight.dev)", | ||
"license": "MIT", | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<pre data-lang="csharp"><code>using RestSharp; | ||
using System; | ||
using System.Text; | ||
|
||
var credentials = Convert.ToBase64String(Encoding.UTF8.GetBytes("{EMAIL}:{PASSWORD}")); | ||
|
||
var client = new RestClient("https://api.keygen.sh/v1/accounts/{ACCOUNT}"); | ||
var request = new RestRequest("tokens", Method.POST); | ||
|
||
request.AddHeader("Accept", "application/vnd.api+json"); | ||
request.AddHeader("Authorization", $"Basic {credentials}"); | ||
|
||
var response = client.Execute(request);</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters