mirror of
https://github.com/alexhopeoconnor/binarylane-dotnet.git
synced 2026-10-04 02:18:11 +10:00
Refine public documentation
This commit is contained in:
@@ -44,7 +44,7 @@ internal static class DemoProgram
|
||||
{
|
||||
Console.Error.WriteLine(
|
||||
"No API token is configured. Use user secrets or set BINARYLANE_API_TOKEN. "
|
||||
+ "Run with --help for a safe setup command.");
|
||||
+ "Run with --help for a setup command.");
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -104,8 +104,7 @@ internal static class DemoProgram
|
||||
}
|
||||
catch (BinaryLaneApiException exception)
|
||||
{
|
||||
// Provider details may contain user data. Do not print Problem, headers,
|
||||
// or ResponseBody in a sample application.
|
||||
// The sample prints the response status and path only.
|
||||
Console.Error.WriteLine(
|
||||
$"BinaryLane request failed with HTTP {(int)exception.StatusCode} "
|
||||
+ $"({exception.StatusCode}) at {exception.RequestUri.AbsolutePath}.");
|
||||
@@ -160,8 +159,7 @@ internal static class DemoProgram
|
||||
server <positive-server-id>
|
||||
regions
|
||||
|
||||
You can also set BINARYLANE_API_TOKEN for one process. Never commit
|
||||
a token or add it to appsettings.json.
|
||||
You can also set BINARYLANE_API_TOKEN for one process.
|
||||
""");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,8 +13,7 @@ dotnet user-secrets set \
|
||||
--project examples/BinaryLane.Api.Demo
|
||||
```
|
||||
|
||||
Alternatively, set `BINARYLANE_API_TOKEN` for one process. Do not add a token
|
||||
to `appsettings.json`.
|
||||
Alternatively, start the process with `BINARYLANE_API_TOKEN` set.
|
||||
|
||||
## Run it
|
||||
|
||||
|
||||
Reference in New Issue
Block a user