npm package: @snokam/crypto-client
Description: OpenAPI client for @snokam/crypto-client
Author: OpenAPI-Generator
Latest version: 1.2.3

# @snokam/crypto-client@1.2.3

A TypeScript SDK client for the crypto.api.snokam.no API.

## Usage

First, install the SDK from npm.

```bash
npm install @snokam/crypto-client --save
```

Next, try it out.


```ts
import {
  Configuration,
  CryptoClient,
} from '@snokam/crypto-client';
import type { DatabaseValidationRequest } from '@snokam/crypto-client';

async function example() {
  console.log("🚀 Testing @snokam/crypto-client SDK...");
  const config = new Configuration({ 
    // To configure OAuth2 access token for authorization: Implicit implicit
    accessToken: "YOUR ACCESS TOKEN",
  });
  const api = new CryptoClient(config);

  try {
    const data = await api.databaseValidation();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);
```


## Documentation

### API Endpoints

All URIs are relative to *https://crypto.api.snokam.no*

| Class | Method | HTTP request | Description
| ----- | ------ | ------------ | -------------
*CryptoClient* | [**databaseValidation**](docs/CryptoClient.md#databasevalidation) | **GET** /v1.0/database-validation | 
*CryptoClient* | [**getBtcAccount**](docs/CryptoClient.md#getbtcaccount) | **GET** /v1.0/account | 
*CryptoClient* | [**getBtcToNokSpotPrice**](docs/CryptoClient.md#getbtctonokspotprice) | **GET** /v1.0/btc-nok | 
*CryptoClient* | [**getDailySalaries**](docs/CryptoClient.md#getdailysalaries) | **GET** /v1.0/salaries/daily | 
*CryptoClient* | [**getEmployeesWithInnovativeSalary**](docs/CryptoClient.md#getemployeeswithinnovativesalary) | **GET** /v1.0/employees | 
*CryptoClient* | [**getEurAccount**](docs/CryptoClient.md#geteuraccount) | **GET** /v1.0/account/eur | 
*CryptoClient* | [**getMyDailySalary**](docs/CryptoClient.md#getmydailysalary) | **GET** /v1.0/salary/daily/me | 
*CryptoClient* | [**getMyTransactionsSummary**](docs/CryptoClient.md#getmytransactionssummary) | **GET** /v1.0/summary/me | 
*CryptoClient* | [**getStatistics**](docs/CryptoClient.md#getstatistics) | **GET** /v1.0/statistics | 
*CryptoClient* | [**getTransaction**](docs/CryptoClient.md#gettransaction) | **GET** /v1.0/transactions/{id} | 
*CryptoClient* | [**getTransactions**](docs/CryptoClient.md#gettransactions) | **GET** /v1.0/transactions | 
*CryptoClient* | [**getTransactionsSummaries**](docs/CryptoClient.md#gettransactionssummaries) | **GET** /v1.0/summaries | 
*CryptoClient* | [**getTransactionsSummary**](docs/CryptoClient.md#gettransactionssummary) | **GET** /v1.0/summary | 
*CryptoClient* | [**getUser**](docs/CryptoClient.md#getuser) | **GET** /v1.0/user | 
*CryptoClient* | [**payDailySalaries**](docs/CryptoClient.md#paydailysalaries) | **GET** /v1.0/salaries/daily/pay | 
*CryptoClient* | [**saveCoinbaseTransactionsToCosmos**](docs/CryptoClient.md#savecoinbasetransactionstocosmos) | **GET** /v1.0/save-coinbase-transactions-to-cosmos | 


### Models

- [Account](docs/Account.md)
- [AccountBalance](docs/AccountBalance.md)
- [AccountCurrency](docs/AccountCurrency.md)
- [Amount](docs/Amount.md)
- [Basis](docs/Basis.md)
- [CryptoBuys](docs/CryptoBuys.md)
- [CryptoSells](docs/CryptoSells.md)
- [EmployeeTransactionSummary](docs/EmployeeTransactionSummary.md)
- [Entity](docs/Entity.md)
- [From](docs/From.md)
- [ISalary](docs/ISalary.md)
- [ModelError](docs/ModelError.md)
- [Money](docs/Money.md)
- [Network](docs/Network.md)
- [NetworkMoney](docs/NetworkMoney.md)
- [ResponseAccount](docs/ResponseAccount.md)
- [ResponseStatistics](docs/ResponseStatistics.md)
- [ResponseTransaction](docs/ResponseTransaction.md)
- [ResponseUser](docs/ResponseUser.md)
- [SanityEmployee](docs/SanityEmployee.md)
- [SanityEmployeeCliftonStrengthsInner](docs/SanityEmployeeCliftonStrengthsInner.md)
- [SanityEmployeeCommissionTier](docs/SanityEmployeeCommissionTier.md)
- [SanityEmployeeEquipmentInner](docs/SanityEmployeeEquipmentInner.md)
- [SanityEmployeeGroupsInner](docs/SanityEmployeeGroupsInner.md)
- [SanityEmployeeGroupsInnerLeadersInner](docs/SanityEmployeeGroupsInnerLeadersInner.md)
- [SanityEmployeeManager](docs/SanityEmployeeManager.md)
- [SanityEmployeeNextOfKinInner](docs/SanityEmployeeNextOfKinInner.md)
- [SanityEmployeeTechnologiesInner](docs/SanityEmployeeTechnologiesInner.md)
- [SanitySystemsInnerDescriptionInner](docs/SanitySystemsInnerDescriptionInner.md)
- [SanityTechnologyDescriptionInnerOneOfChildrenInner](docs/SanityTechnologyDescriptionInnerOneOfChildrenInner.md)
- [SanityTechnologyDescriptionInnerOneOfMarkDefsInner](docs/SanityTechnologyDescriptionInnerOneOfMarkDefsInner.md)
- [SanityTechnologyWithRelationsParentDescriptionInnerOneOf3MediaInner](docs/SanityTechnologyWithRelationsParentDescriptionInnerOneOf3MediaInner.md)
- [SanityTechnologyWithRelationsProjectsInnerParticipantsInnerImage](docs/SanityTechnologyWithRelationsProjectsInnerParticipantsInnerImage.md)
- [SanityTechnologyWithRelationsProjectsInnerParticipantsInnerTagsInner](docs/SanityTechnologyWithRelationsProjectsInnerParticipantsInnerTagsInner.md)
- [SanityTvCategoryDashboardsInnerBackgroundImage](docs/SanityTvCategoryDashboardsInnerBackgroundImage.md)
- [SanityTvCategoryDashboardsInnerBackgroundImageAsset](docs/SanityTvCategoryDashboardsInnerBackgroundImageAsset.md)
- [Slug](docs/Slug.md)
- [Statistics](docs/Statistics.md)
- [Summary](docs/Summary.md)
- [Tax](docs/Tax.md)
- [TimeTransactionSummary](docs/TimeTransactionSummary.md)
- [To](docs/To.md)
- [TodaysSalarySummary](docs/TodaysSalarySummary.md)
- [Transaction](docs/Transaction.md)
- [TransactionSummary](docs/TransactionSummary.md)
- [User](docs/User.md)
- [Warning](docs/Warning.md)

### Authorization


Authentication schemes defined for the API:
<a id="Implicit-implicit"></a>
#### Implicit implicit


- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/authorize
- **Scopes**: 
  - `api://a2facada-53d1-4545-b1f7-d6aaed170709/user_impersonation`: Default function scope

## About

This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
and is automatically generated by the
[OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `v1.0.0`
- Package version: `1.2.3`
- Generator version: `7.17.0`
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`

The generated npm module supports the following:

- Environments
  * Node.js
  * Webpack
  * Browserify
- Language levels
  * ES5 - you must have a Promises/A+ library installed
  * ES6
- Module systems
  * CommonJS
  * ES6 module system


## Development

### Building

To build the TypeScript source code, you need to have Node.js and npm installed.
After cloning the repository, navigate to the project directory and run:

```bash
npm install
npm run build
```

### Publishing

Once you've built the package, you can publish it to npm:

```bash
npm publish
```

## License

[]()