permify-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

permify-typescript

Permify Typescript Client

Getting Started

import * as permify from "permify-typescript";

const configuration = new permify.Configuration({
    basePath: "http://localhost:3476",
    headers: {
        'Authorization': "Bearer ***"
    }
})

const apiInstance = new permify.TenancyApi(configuration);

let tenantId = "tenant_id_example"; 

apiInstance.tenantsCreate({
    body: {
        id: tenantId,
        name: "Tenant 1"
    }
}).then((data) => {
    console.log('API called successfully. Returned data: ' + data.tenant);
}).catch((error) => console.error(error));

Readme

Keywords

none

Package Sidebar

Install

npm i permify-typescript

Weekly Downloads

125

Version

1.0.0

License

Apache-2.0

Unpacked Size

907 kB

Total Files

418

Last publish

Collaborators

  • ucatbas