# poi_apis

> _OverviewMarsh_APIs____Certificate_of_Insurance_are_RESTful_APIs__The_requests_and_responses_are_formated_acording_tothe__JSON_API_httpjsonapi_orgformat1_0_specification_These_APIs_provide_the_capability_to1__Issue_Certificates_to_existing_holders2__Re_Is

Latest version **1.0.1** (published 2019-02-20) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install poi_apis
pnpm add poi_apis
yarn add poi_apis
bun add poi_apis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-02-20 |
| First published | 2019-02-20 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 316.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | u1153018 |

## Links

- npm: https://www.npmjs.com/package/poi_apis
- npm.io page: https://npm.io/package/poi_apis

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) 3.7.0

## Recent versions

- 1.0.1 (latest) — 2019-02-20
- 1.0.0 — 2019-02-20

## README

# proof_of_insurance_apis

ProofOfInsuranceApis - JavaScript client for proof_of_insurance_apis
# Overview Marsh API's - [Certificate of Insurance] are RESTful API's. The requests and responses are formated acording to the [JSON API](http://jsonapi.org/format/1.0/) specification.  These API's provide the capability to 1. Issue Certificates to existing holders 2. Re-Issue Certificates to existing holders 3. Get a report of Issued Certificates 4. Maintain Holder information  # Authentication Authentication for the BlockChain COI API is based on the security token. Marsh currently supports grant types of **client_credentials** and **refresh_token**. See [POST /oauth/token](#operation/createToken) for details on the request and response formats. <!-- ReDoc-Inject: <security-definitions> --> 
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v0.1
- Package version: v0.1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install proof_of_insurance_apis --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your proof_of_insurance_apis from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('proof_of_insurance_apis')` in javascript files from the directory you ran the last 
command above from.

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

```shell
    npm install YOUR_USERNAME/proof_of_insurance_apis --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). 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, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```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['authorization'] = "Token"

var api = new ProofOfInsuranceApis.CertificatesApi()

var certificateId = 8.14; // {Number} 

var opts = { 
  'clientId': 8.14, // {Number} Client Id
  '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);
  }
};
api.clientsCertificatesCertificateIdRecipientsGet(certificateId, opts, callback);

```

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ProofOfInsuranceApis.CertificatesApi* | [**clientsCertificatesCertificateIdRecipientsGet**](docs/CertificatesApi.md#clientsCertificatesCertificateIdRecipientsGet) | **GET** /clients/certificates/{certificate-id}/recipients | returns back the recipient list - at certificate + template + client level
*ProofOfInsuranceApis.CertificatesApi* | [**clientsCertificatesCertificateIdRecipientsPost**](docs/CertificatesApi.md#clientsCertificatesCertificateIdRecipientsPost) | **POST** /clients/certificates/{certificate-id}/recipients | returns back the recipient list - at certificate + template + client level
*ProofOfInsuranceApis.CertificatesApi* | [**clientsCertificatesGet**](docs/CertificatesApi.md#clientsCertificatesGet) | **GET** /clients/certificates | Get Certificates
*ProofOfInsuranceApis.ClientsApi* | [**clientsGet**](docs/ClientsApi.md#clientsGet) | **GET** /clients | Get role &amp; privileges for the clients that are authorized for the the given user
*ProofOfInsuranceApis.ClientsApi* | [**clientsPoitypesGet**](docs/ClientsApi.md#clientsPoitypesGet) | **GET** /clients/poitypes | Get User Details
*ProofOfInsuranceApis.HoldersApi* | [**clientsHoldersGet**](docs/HoldersApi.md#clientsHoldersGet) | **GET** /clients/holders | Get Holders
*ProofOfInsuranceApis.HoldersApi* | [**clientsHoldersPost**](docs/HoldersApi.md#clientsHoldersPost) | **POST** /clients/holders | Add a new Holder
*ProofOfInsuranceApis.HoldersApi* | [**clientsHoldersPut**](docs/HoldersApi.md#clientsHoldersPut) | **PUT** /clients/holders | Update Holders
*ProofOfInsuranceApis.InsuredApi* | [**clientsInsuredGet**](docs/InsuredApi.md#clientsInsuredGet) | **GET** /clients/insured | Get Holders
*ProofOfInsuranceApis.TemplatesApi* | [**clientsTemplatesGet**](docs/TemplatesApi.md#clientsTemplatesGet) | **GET** /clients/templates | Get User Details


## Documentation for Models

 - [ProofOfInsuranceApis.ACORDForm](docs/ACORDForm.md)
 - [ProofOfInsuranceApis.ACORDFormDetails](docs/ACORDFormDetails.md)
 - [ProofOfInsuranceApis.Address](docs/Address.md)
 - [ProofOfInsuranceApis.Amount](docs/Amount.md)
 - [ProofOfInsuranceApis.Attachment](docs/Attachment.md)
 - [ProofOfInsuranceApis.BadRequest](docs/BadRequest.md)
 - [ProofOfInsuranceApis.BadRequestInner](docs/BadRequestInner.md)
 - [ProofOfInsuranceApis.Certificate](docs/Certificate.md)
 - [ProofOfInsuranceApis.Certificates](docs/Certificates.md)
 - [ProofOfInsuranceApis.ClaimType](docs/ClaimType.md)
 - [ProofOfInsuranceApis.Client](docs/Client.md)
 - [ProofOfInsuranceApis.ClientPolicy](docs/ClientPolicy.md)
 - [ProofOfInsuranceApis.Contact](docs/Contact.md)
 - [ProofOfInsuranceApis.Coverage](docs/Coverage.md)
 - [ProofOfInsuranceApis.Error](docs/Error.md)
 - [ProofOfInsuranceApis.Holder](docs/Holder.md)
 - [ProofOfInsuranceApis.Holders](docs/Holders.md)
 - [ProofOfInsuranceApis.InsuranceType](docs/InsuranceType.md)
 - [ProofOfInsuranceApis.Insured](docs/Insured.md)
 - [ProofOfInsuranceApis.Insurer](docs/Insurer.md)
 - [ProofOfInsuranceApis.Limit](docs/Limit.md)
 - [ProofOfInsuranceApis.LoggedInUser](docs/LoggedInUser.md)
 - [ProofOfInsuranceApis.Pagination](docs/Pagination.md)
 - [ProofOfInsuranceApis.PaginationPagination](docs/PaginationPagination.md)
 - [ProofOfInsuranceApis.Producer](docs/Producer.md)
 - [ProofOfInsuranceApis.Recipient](docs/Recipient.md)
 - [ProofOfInsuranceApis.Template](docs/Template.md)


## Documentation for Authorization


### JWT

- **Type**: API key
- **API key parameter name**: authorization
- **Location**: HTTP header

---
_Source: https://npm.io/package/poi_apis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
