# KrobaLicenceSdk.DefaultApi

All URIs are relative to *https://licence-backend.glitch.me*

Method | HTTP request | Description
------------- | ------------- | -------------
[**activateLicence**](DefaultApi.md#activateLicence) | **POST** /api/licence/activate | ActivateLicence
[**deactivateLicence**](DefaultApi.md#deactivateLicence) | **POST** /api/licence/deactivate | DeactivateLicence


<a name="activateLicence"></a>
# **activateLicence**
> activateLicence(licenceId, opts)

ActivateLicence

### Example
```javascript
var KrobaLicenceSdk = require('kroba_licence_sdk');
var defaultClient = KrobaLicenceSdk.ApiClient.instance;
// Configure API key authorization: sso_auth
var sso_auth = defaultClient.authentications['sso_auth'];
sso_auth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//sso_auth.apiKeyPrefix = 'Token';

var apiInstance = new KrobaLicenceSdk.DefaultApi();
var licenceId = "licenceId_example"; // String | 
var opts = {
  'token': "token_example" // String | 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.activateLicence(licenceId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **licenceId** | **String**|  | 
 **token** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[sso_auth](../README.md#sso_auth)

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json; charset=utf-8

<a name="deactivateLicence"></a>
# **deactivateLicence**
> deactivateLicence(licenceId, opts)

DeactivateLicence

### Example
```javascript
var KrobaLicenceSdk = require('kroba_licence_sdk');
var defaultClient = KrobaLicenceSdk.ApiClient.instance;
// Configure API key authorization: sso_auth
var sso_auth = defaultClient.authentications['sso_auth'];
sso_auth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//sso_auth.apiKeyPrefix = 'Token';

var apiInstance = new KrobaLicenceSdk.DefaultApi();
var licenceId = "licenceId_example"; // String | 
var opts = {
  'token': "token_example" // String | 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deactivateLicence(licenceId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **licenceId** | **String**|  | 
 **token** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[sso_auth](../README.md#sso_auth)

### HTTP request headers

 - **Content-Type**: application/x-www-form-urlencoded
 - **Accept**: application/json; charset=utf-8

