Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.17 KB

TokenAuthApi.md

File metadata and controls

56 lines (36 loc) · 1.17 KB

OldpApi.TokenAuthApi

All URIs are relative to https://de.openlegaldata.io/api

Method HTTP request Description
tokenAuthCreate POST /token-auth/

tokenAuthCreate

tokenAuthCreate()

Example

var OldpApi = require('oldp-api');
var defaultClient = OldpApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new OldpApi.TokenAuthApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.tokenAuthCreate(callback);

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json