# ProofOfInsuranceApis.ClientsApi

All URIs are relative to *https://api.m2digitalbroker.com/proxy/certificates/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**clientsGet**](ClientsApi.md#clientsGet) | **GET** /clients | Get role &amp; privileges for the clients that are authorized for the the given user
[**clientsPoitypesGet**](ClientsApi.md#clientsPoitypesGet) | **GET** /clients/poitypes | Get User Details


<a name="clientsGet"></a>
# **clientsGet**
> [Client] clientsGet(authorization, opts)

Get role &amp; privileges for the clients that are authorized for the the given user

Get role &amp; privileges for the clients that are authorized for the the given user

### Example
```javascript
var ProofOfInsuranceApis = require('proof_of_insurance_apis');
var defaultClient = ProofOfInsuranceApis.ApiClient.instance;

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

var apiInstance = new ProofOfInsuranceApis.ClientsApi();

var authorization = "authorization_example"; // String | Bearer $USER_TOKEN

var opts = { 
  'contentType': "contentType_example" // String | application/json
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.clientsGet(authorization, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**| Bearer $USER_TOKEN | 
 **contentType** | **String**| application/json | [optional] 

### Return type

[**[Client]**](Client.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json; charset=utf-8

<a name="clientsPoitypesGet"></a>
# **clientsPoitypesGet**
> [ACORDForm] clientsPoitypesGet(clientId, opts)

Get User Details

Get user details

### Example
```javascript
var ProofOfInsuranceApis = require('proof_of_insurance_apis');
var defaultClient = ProofOfInsuranceApis.ApiClient.instance;

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

var apiInstance = new ProofOfInsuranceApis.ClientsApi();

var clientId = 8.14; // Number | client id for which the coitypes have to be retrieved

var opts = { 
  'authorization': "authorization_example", // String | Bearer $USER_TOKEN
  'contentType': "contentType_example" // String | application/json
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.clientsPoitypesGet(clientId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**| client id for which the coitypes have to be retrieved | 
 **authorization** | **String**| Bearer $USER_TOKEN | [optional] 
 **contentType** | **String**| application/json | [optional] 

### Return type

[**[ACORDForm]**](ACORDForm.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json; charset=utf-8

