https://github.com/permify/permify-typescript
Permify Typescript Client
https://github.com/permify/permify-typescript
Last synced: 2 months ago
JSON representation
Permify Typescript Client
- Host: GitHub
- URL: https://github.com/permify/permify-typescript
- Owner: Permify
- License: apache-2.0
- Created: 2024-07-18T07:58:32.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T13:22:32.000Z (11 months ago)
- Last Synced: 2025-04-04T07:35:50.237Z (3 months ago)
- Language: TypeScript
- Size: 85.9 KB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# permify-typescript
Typescript Client for Permify which is an open source authorization service for creating fine-grained and scalable authorization systems.This Typescript package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
## Requirements.
- Typescript
- npm### Installation
To include the SDK in your project, install the package from npm:
```sh
npm i permify-typescript
```## Getting Started
```typescript
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));```
## Author