OutlineManager 1.1.3
dotnet add package OutlineManager --version 1.1.3
NuGet\Install-Package OutlineManager -Version 1.1.3
<PackageReference Include="OutlineManager" Version="1.1.3" />
<PackageVersion Include="OutlineManager" Version="1.1.3" />
<PackageReference Include="OutlineManager" />
paket add OutlineManager --version 1.1.3
#r "nuget: OutlineManager, 1.1.3"
#addin nuget:?package=OutlineManager&version=1.1.3
#tool nuget:?package=OutlineManager&version=1.1.3
OutlineManager
.NET Library for Outline Proxy Manager API
Installation
Enter this into terminal in your project directory:
dotnet add package OutlineManager
Quick start
- Get your API Management URL from your Outline Server:
sudo cat /opt/outline/access.txt
- Initialize the server in your C# project
private static string apiUrl = "your URL from Outline Server";
public static OutlineManager server1 = new OutlineManager(apiUrl);
Get List of Outline Server Keys
Use method .GetKeys()
to get list of Outline Keys in the List<OutlineKey>
:
//returns List<OutlineKey>
var keys = outline.GetKeys();
Edit Outline Key
1. Rename Outline Key
You can change name of key by KeyId with the method .RenameKey()
.
Parameters:
- id - ID of the Key
- name - new name for this key
Example:
// return true, if operation was successful
var status = outline.RenameKey(0, "Lance's key");
2. Add Data Limit
If your Outline Server's traffic not unlimited, you can adjust data limits with the method .AddDataLimit()
.
Parameters:
- id - ID of the Key in Outline
- limitBytes - Your new limit in bytes
Example:
// return true, if operation was successful
var status = outline.AddDataLimit(0, 0); // if limit in bytes = 0, the key usage is suspended
Also you can remove limit with method outline.DeleteDataLimit(0)
with id parameter
3. Create new Key
You can create new key for your friend or family with method .CreateKey()
.
// returns key info in OutlineKey
var status = outline.CreateKey(0, 0);
Also you can delete key with method outline.DeleteKey(0)
with id parameter, if this key leaked or useless
4. Get Transferred Data
You can get list of keys with transferred data in bytes with method .GetTransferredData()
.
// return List<TransferredData>
var transferredData = outline.GetTransferredData();
❤️Support Devs of this Library
Russia 🇷🇺:<br>
DonationAlerts<br> QIWI<br> YooMoney - 4100115740796249<br> Sberbank - 4817 7602 1736 1942 (Kirill K.)<br> Tinkoff - 2200 7007 7308 4180 (Kirill I.)
Turkey 🇹🇷:<br>
Papara - 1895931253 (Kirill Corvych) Oldubil - 5388 4105 5265 3265
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fix SSL bypass for POST methods