2.0.2 • Published 5 years ago

wise-r-openapi-client v2.0.2

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

wise-r-openapi-client

WiserClient - JavaScript client for wise-r-openapi-client No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.0
  • Package version: 2.0
  • Build date: 2018-01-30T15:54:37.654+01:00
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install wise-r-openapi-client --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var WiserClient = require('wise-r-openapi-client');

var defaultClient = WiserClient.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth_client_credentials
var oauth_client_credentials = defaultClient.authentications['oauth_client_credentials'];
oauth_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WiserClient.ChangesApi()

var schoollocations = ["schoollocations_example"]; // {[String]} Filter on schoollocations (required, list of id's)

var opts = { 
  'nextId': 789 // {Integer} ID that was returned the last time when retrieving Changes for this set of schoollocations. When empty, only the last changes will be returned as a starting point for a new synchronisation of a schoollocation
};
api.getChanges(schoollocations, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://localhost/api

ClassMethodHTTP requestDescription
WiserClient.ChangesApigetChangesGET /v2/changesGet Changes in Users and Groups.
WiserClient.DocumentsApiputProcessingAgreementPUT /v2/documents/processingagreementUpload a processing agreement
WiserClient.GroupsApideleteGroupKeyDELETE /v2/groups/{id}/keysDelete a key from keyring
WiserClient.GroupsApigetGroupGET /v2/groups/{id}Get Group
WiserClient.GroupsApigetGroupKeyGET /v2/groups/{id}/keys/clientGet key from keyring
WiserClient.GroupsApigetGroupKeysGET /v2/groups/{id}/keysGet keys from keyring
WiserClient.GroupsApigetGroupUwlrKeyGET /v2/groups/{id}/keys/uwlrGet 'UWLR' key from keyring
WiserClient.GroupsApigetGroupsGET /v2/groupsGet Groups
WiserClient.GroupsApiputGroupKeyPUT /v2/groups/{id}/keysSave a key in keyring
WiserClient.LicensesApicreateLicensePOST /v2/licensesCreate a new license
WiserClient.LicensesApigetLicenseGET /v2/licenses/{id}Get License
WiserClient.LicensesApigetLicensesGET /v2/licensesGet Licenses
WiserClient.LicensesApiupdateLicensePUT /v2/licensesUpdate an existing license
WiserClient.SchoolsApigetParentSchoolGET /v2/schoolLocations/parent/{id}Get School
WiserClient.SchoolsApigetSchoolLocationGET /v2/schoolLocations/{id}Get SchoolLocation
WiserClient.SchoolsApigetSchoolLocationsGET /v2/schoolLocationsGet Schools
WiserClient.UsersApideleteUserKeyDELETE /v2/users/{id}/keys/clientDelete a key from keyring
WiserClient.UsersApigetUserGET /v2/users/{id}Get User
WiserClient.UsersApigetUserKeyGET /v2/users/{id}/keys/clientGet key from keyring
WiserClient.UsersApigetUserKeysGET /v2/users/{id}/keysGet keys from keyring
WiserClient.UsersApigetUserUwlrKeyGET /v2/users/{id}/keys/uwlrGet 'UWLR' key from keyring
WiserClient.UsersApigetUsersGET /v2/usersGet Users
WiserClient.UsersApiputUserKeyPUT /v2/users/{id}/keys/clientSave a key in keyring

Documentation for Models

Documentation for Authorization

oauth_client_credentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
    • access: Full read access