All URIs are relative to https://koding.com/remote.api
Method | HTTP request | Description |
---|---|---|
activeSession | POST /JSession.activeSession | |
remove | POST /JSession.remove/{id} |
DefaultResponse activeSession()
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JSessionApi();
apiInstance.activeSession().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: Not defined
DefaultResponse remove(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JSessionApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.remove(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Mongo ID of target instance | |
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined