originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
42 lines (28 loc) • 842 B
Markdown
# OriginStamp TypeScript Fetch Client

> A TypeScript Fetch implementation of the OriginStamp API. For endpoint documentation see [OriginStamp Documentation](https://docs.originstamp.com).
## Install
```
npm install originstamp-client-fetch@3.0.0 --save
```
## Usage
Simple example for using the API correctly:
```bash
# Prepare Class
const api_key = "exampleApiKey"
const config: Configuration = new Configuration({
basePath: "https://apidev.originstamp.com"
apiKey: () => api_key
})
const api: TimestampApi = new TimestampApi(config)
# Prepare data
const body = {
sha256: [
"example"
]
}
# Using the API Class
const response: TimestampResponse = await api.createTimestamp({ timestampRequest: body })
```
## Author
mail@originstamp.com