All URIs are relative to https://koding.com/remote.api
Method | HTTP request | Description |
---|---|---|
acceptInvitation | POST /JAccount.acceptInvitation/{id} | |
blockUser | POST /JAccount.blockUser/{id} | |
byRelevance | POST /JAccount.byRelevance | |
cancelRequest | POST /JAccount.cancelRequest/{id} | |
checkGroupMembership | POST /JAccount.checkGroupMembership/{id} | |
count | POST /JAccount.count | |
destroy | POST /JAccount.destroy/{id} | |
expireSubscription | POST /JAccount.expireSubscription/{id} | |
fetchAppStorage | POST /JAccount.fetchAppStorage/{id} | |
fetchBlockedUsers | POST /JAccount.fetchBlockedUsers | |
fetchEmail | POST /JAccount.fetchEmail/{id} | |
fetchEmailAndStatus | POST /JAccount.fetchEmailAndStatus/{id} | |
fetchEmailFrequency | POST /JAccount.fetchEmailFrequency/{id} | |
fetchEmailsByUsername | POST /JAccount.fetchEmailsByUsername | |
fetchFromUser | POST /JAccount.fetchFromUser/{id} | |
fetchGroups | POST /JAccount.fetchGroups/{id} | |
fetchKites | POST /JAccount.fetchKites/{id} | |
fetchMyPermissions | POST /JAccount.fetchMyPermissions/{id} | |
fetchMyPermissionsAndRoles | POST /JAccount.fetchMyPermissionsAndRoles/{id} | |
fetchMySessions | POST /JAccount.fetchMySessions/{id} | |
fetchOAuthInfo | POST /JAccount.fetchOAuthInfo/{id} | |
fetchOtaToken | POST /JAccount.fetchOtaToken/{id} | |
fetchPaymentMethods | POST /JAccount.fetchPaymentMethods/{id} | |
fetchRelativeGroups | POST /JAccount.fetchRelativeGroups/{id} | |
fetchRole | POST /JAccount.fetchRole/{id} | |
generate2FactorAuthKey | POST /JAccount.generate2FactorAuthKey/{id} | |
ignoreInvitation | POST /JAccount.ignoreInvitation/{id} | |
isEmailVerified | POST /JAccount.isEmailVerified/{id} | |
isFollowing | POST /JAccount.isFollowing/{id} | |
markUserAsExempt | POST /JAccount.markUserAsExempt/{id} | |
modify | POST /JAccount.modify/{id} | |
one | POST /JAccount.one | |
pushNotification | POST /JAccount.pushNotification/{id} | |
setEmailPreferences | POST /JAccount.setEmailPreferences/{id} | |
setup2FactorAuth | POST /JAccount.setup2FactorAuth/{id} | |
some | POST /JAccount.some | |
someWithRelationship | POST /JAccount.someWithRelationship | |
unblockUser | POST /JAccount.unblockUser/{id} | |
unlinkOauth | POST /JAccount.unlinkOauth/{id} | |
updateFlags | POST /JAccount.updateFlags/{id} | |
verifyEmailByUsername | POST /JAccount.verifyEmailByUsername |
DefaultResponse acceptInvitation(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.acceptInvitation(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
DefaultResponse blockUser(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.blockUser(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
DefaultResponse byRelevance(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.byRelevance(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse cancelRequest(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.cancelRequest(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
DefaultResponse checkGroupMembership(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.checkGroupMembership(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
DefaultResponse count(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.count(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse destroy(id, body)
Method JAccount.destroy
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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.destroy(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
DefaultResponse expireSubscription(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.expireSubscription(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
DefaultResponse fetchAppStorage(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchAppStorage(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
DefaultResponse fetchBlockedUsers(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchBlockedUsers(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse fetchEmail(id, body)
Method JAccount.fetchEmail
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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchEmail(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
DefaultResponse fetchEmailAndStatus(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchEmailAndStatus(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
DefaultResponse fetchEmailFrequency(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchEmailFrequency(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
DefaultResponse fetchEmailsByUsername(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchEmailsByUsername(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse fetchFromUser(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchFromUser(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
DefaultResponse fetchGroups(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchGroups(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
DefaultResponse fetchKites(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchKites(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
DefaultResponse fetchMyPermissions(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchMyPermissions(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
DefaultResponse fetchMyPermissionsAndRoles(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchMyPermissionsAndRoles(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
DefaultResponse fetchMySessions(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchMySessions(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
DefaultResponse fetchOAuthInfo(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchOAuthInfo(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
DefaultResponse fetchOtaToken(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchOtaToken(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
DefaultResponse fetchPaymentMethods(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchPaymentMethods(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
DefaultResponse fetchRelativeGroups(id, body)
Method JAccount.fetchRelativeGroups
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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchRelativeGroups(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
DefaultResponse fetchRole(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.fetchRole(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
DefaultResponse generate2FactorAuthKey(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.generate2FactorAuthKey(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
DefaultResponse ignoreInvitation(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.ignoreInvitation(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
DefaultResponse isEmailVerified(id, body)
Method JAccount.isEmailVerified
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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.isEmailVerified(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
DefaultResponse isFollowing(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.isFollowing(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
DefaultResponse markUserAsExempt(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.markUserAsExempt(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
DefaultResponse modify(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.modify(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
DefaultResponse one(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.one(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse pushNotification(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.pushNotification(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
DefaultResponse setEmailPreferences(id, body)
Method JAccount.setEmailPreferences
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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.setEmailPreferences(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
DefaultResponse setup2FactorAuth(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.setup2FactorAuth(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
DefaultResponse some(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.some(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse someWithRelationship(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.someWithRelationship(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse unblockUser(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.unblockUser(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
DefaultResponse unlinkOauth(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.unlinkOauth(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
DefaultResponse updateFlags(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.JAccountApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.updateFlags(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
DefaultResponse verifyEmailByUsername(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.JAccountApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.verifyEmailByUsername(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined