runtime_keygen_openapi 1.0.0

SDKdartflutter
Platformandroidioswindowslinuxmacos

A Dart package for Keygen (keygen.sh) OpenAPI bindings

runtime_keygen_openapi

The Keygen API is organized around REST principles. All requests must be made over TLS/SSL. We only support TLS 1.2, for security reasons. All API request and response bodies, including errors, are encoded in JSON format.

The API has predictable, resource-oriented URLs, and uses standard HTTP response codes to indicate API errors. We use built-in HTTP features, like authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients. We support cross-origin resource sharing, allowing you to interact securely with our API from any client-facing software application.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen For more information, please visit https://keygen.sh

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  runtime_keygen_openapi:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  runtime_keygen_openapi:
    path: /path/to/runtime_keygen_openapi

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:runtime_keygen_openapi/api.dart';

// TODO Configure HTTP Bearer authorization: BearerToken
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('BearerToken').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('BearerToken').setAccessToken(yourTokenGeneratorFunction);

final api_instance = EntitlementsApi();
final account = account_example; // String | The identifier (UUID) or slug of your Keygen account.
final createEntitlementRequest = CreateEntitlementRequest(); // CreateEntitlementRequest | 

try {
    final result = api_instance.createEntitlement(account, createEntitlementRequest);
    print(result);
} catch (e) {
    print('Exception when calling EntitlementsApi->createEntitlement: $e\n');
}

Documentation for API Endpoints

All URIs are relative to https://api.keygen.sh/v1

ClassMethodHTTP requestDescription
EntitlementsApicreateEntitlementPOST /accounts/{account}/entitlementsCreate an entitlement
EntitlementsApideleteEntitlementDELETE /accounts/{account}/entitlements/{entitlement}Delete an entitlement
EntitlementsApilistEntitlementsGET /accounts/{account}/entitlementsList all entitlements
EntitlementsApiretrieveEntitlementGET /accounts/{account}/entitlements/{entitlement}Retrieve an entitlement
EntitlementsApiupdateEntitlementPATCH /accounts/{account}/entitlements/{entitlement}Update an entitlement
GroupsApicreateGroupPOST /accounts/{account}/groupsCreate a group
GroupsApideleteGroupDELETE /accounts/{account}/groups/{group}Delete a group
GroupsApilistGroupsGET /accounts/{account}/groupsList all groups
GroupsApiretrieveGroupGET /accounts/{account}/groups/{group}Retrieve a group
GroupsApiupdateGroupPATCH /accounts/{account}/groups/{group}Update a group
LicensesApiattachLicenseEntitlementsPOST /accounts/{account}/licenses/{license}/entitlementsAttach license entitlements
LicensesApichangeLicenseGroupPUT /accounts/{account}/licenses/{license}/groupChange group
LicensesApichangeLicensePolicyPUT /accounts/{account}/licenses/{license}/policyChange policy
LicensesApichangeLicenseUserPUT /accounts/{account}/licenses/{license}/userChange user
LicensesApicheckInLicensePOST /accounts/{account}/licenses/{license}/actions/check-inCheck-in a license
LicensesApicheckOutLicensePOST /accounts/{account}/licenses/{license}/actions/check-outCheck-out license
LicensesApicreateLicensePOST /accounts/{account}/licensesCreate a license
LicensesApicreateLicenseTokenPOST /accounts/{account}/licenses/{license}/tokensGenerate a license token
LicensesApidecrementLicenseUsagePOST /accounts/{account}/licenses/{license}/actions/decrement-usageDecrement license usage
LicensesApideleteLicenseDELETE /accounts/{account}/licenses/{license}Delete a license
LicensesApidetachLicenseEntitlementsDELETE /accounts/{account}/licenses/{license}/entitlementsDetach license entitlements
LicensesApiincrementLicenseUsagePOST /accounts/{account}/licenses/{license}/actions/increment-usageIncrement license usage
LicensesApilistLicenseEntitlementsGET /accounts/{account}/licenses/{license}/entitlementsList license entitlements
LicensesApilistLicensesGET /accounts/{account}/licensesList all licenses
LicensesApireinstateLicensePOST /accounts/{account}/licenses/{license}/actions/reinstateReinstate a license
LicensesApirenewLicensePOST /accounts/{account}/licenses/{license}/actions/renewRenew a license
LicensesApiresetLicenseUsagePOST /accounts/{account}/licenses/{license}/actions/reset-usageReset license usage
LicensesApiretrieveLicenseGET /accounts/{account}/licenses/{license}Retrieve a license
LicensesApirevokeLicensePOST /accounts/{account}/licenses/{license}/actions/revokeRevoke a license
LicensesApisuspendLicensePOST /accounts/{account}/licenses/{license}/actions/suspendSuspend a license
LicensesApiupdateLicensePATCH /accounts/{account}/licenses/{license}Update a license
LicensesApivalidateLicensePOST /accounts/{account}/licenses/{license}/actions/validateValidate by license ID
LicensesApivalidateLicenseKeyPOST /accounts/{account}/licenses/actions/validate-keyValidate by license key
MachinesApiactivateMachinePOST /accounts/{account}/machinesActivate a machine
MachinesApichangeMachineGroupPUT /accounts/{account}/machines/{machine}/groupChange group
MachinesApicheckOutMachinePOST /accounts/{account}/machines/{machine}/actions/check-outCheck-out machine
MachinesApideactivateMachineDELETE /accounts/{account}/machines/{machine}Deactivate a machine
MachinesApilistMachinesGET /accounts/{account}/machinesList all machines
MachinesApipingMachinePOST /accounts/{account}/machines/{machine}/actions/pingPing heartbeat
MachinesApiresetMachinePOST /accounts/{account}/machines/{machine}/actions/resetReset heartbeat
MachinesApiretrieveMachineGET /accounts/{account}/machines/{machine}Retrieve a machine
MachinesApiupdateMachinePATCH /accounts/{account}/machines/{machine}Update a machine
PasswordsApiforgotPasswordPOST /accounts/{account}/passwordsForgot password
PoliciesApiattachPolicyEntitlementsPOST /accounts/{account}/policies/{policy}/entitlementsAttach policy entitlements
PoliciesApicreatePolicyPOST /accounts/{account}/policiesCreate a policy
PoliciesApideletePolicyDELETE /accounts/{account}/policies/{policy}Delete a policy
PoliciesApidetachPolicyEntitlementsDELETE /accounts/{account}/policies/{policy}/entitlementsDetach policy entitlements
PoliciesApilistPoliciesGET /accounts/{account}/policiesList all policies
PoliciesApilistPolicyEntitlementsGET /accounts/{account}/policies/{policy}/entitlementsList policy entitlements
PoliciesApipopKeyFromPolicyPoolDELETE /accounts/{account}/policies/{policy}/poolPop key from pool
PoliciesApiretrievePolicyGET /accounts/{account}/policies/{policy}Retrieve a policy
PoliciesApiupdatePolicyPATCH /accounts/{account}/policies/{policy}Update a policy
ProcessesApikillProcessDELETE /accounts/{account}/processes/{process}Kill a process
ProcessesApilistProcessesGET /accounts/{account}/processesList all processes
ProcessesApipingProcessPOST /accounts/{account}/processes/{process}/actions/pingPing
ProcessesApiretrieveProcessGET /accounts/{account}/processes/{process}Retrieve a process
ProcessesApispawnProcessPOST /accounts/{account}/processesSpawn a process
ProcessesApiupdateProcessPATCH /accounts/{account}/processes/{process}Update a process
ProductsApicreateProductPOST /accounts/{account}/productsCreate a product
ProductsApideleteProductDELETE /accounts/{account}/products/{product}Delete a product
ProductsApigenerateProductTokenPOST /accounts/{account}/products/{product}/tokensGenerate a product token
ProductsApilistProductsGET /accounts/{account}/productsList all products
ProductsApiretrieveProductGET /accounts/{account}/products/{product}Retrieve a product
ProductsApiupdateProductPATCH /accounts/{account}/products/{product}Update a product
ProfilesApiretrieveProfileGET /accounts/{account}/meWho Am I?
SecondFactorsApiaddSecondFactorPOST /accounts/{account}/users/{user}/second-factorsAdd a second factor
SecondFactorsApideleteSecondFactorDELETE /accounts/{account}/users/{user}/second-factors/{second-factor}Delete a second factor
SecondFactorsApilistSecondFactorsGET /accounts/{account}/users/{user}/second-factorsList second factors
SecondFactorsApiretrieveSecondFactorGET /accounts/{account}/users/{user}/second-factors/{second-factor}Retrieve a second factor
SecondFactorsApiupdateSecondFactorPATCH /accounts/{account}/users/{user}/second-factors/{second-factor}Update a second factor
TokensApigenerateTokenPOST /accounts/{account}/tokensGenerate a token
TokensApilistTokensGET /accounts/{account}/tokensList all tokens
TokensApiregenerateTokenPUT /accounts/{account}/tokens/{token}Regenerate a token
TokensApiretrieveTokenGET /accounts/{account}/tokens/{token}Retrieve a token
TokensApirevokeTokenDELETE /accounts/{account}/tokens/{token}Revoke a token
UsersApibanUserPOST /accounts/{account}/users/{user}/actions/banBan user
UsersApichangeUserGroupPUT /accounts/{account}/users/{user}/groupChange group
UsersApicreateUserPOST /accounts/{account}/usersCreate a user
UsersApideleteUserDELETE /accounts/{account}/users/{user}Delete a user
UsersApigenerateUserTokenPOST /accounts/{account}/users/{user}/tokensGenerate a user token
UsersApilistUsersGET /accounts/{account}/usersList all users
UsersApiresetUserPasswordPOST /accounts/{account}/users/{user}/actions/reset-passwordReset password
UsersApiretrieveUserGET /accounts/{account}/users/{user}Retrieve a user
UsersApiunbanUserPOST /accounts/{account}/users/{user}/actions/unbanUnban user
UsersApiupdateUserPATCH /accounts/{account}/users/{user}Update a user
UsersApiupdateUserPasswordPOST /accounts/{account}/users/{user}/actions/update-passwordUpdate password

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BasicAuth

  • Type: HTTP Basic authentication

BearerToken

  • Type: HTTP Bearer authentication

Author

support@keygen.sh