Skip to content

Class: UKomiSDK

Main U-KOMI SDK client for React Native applications.

Provides a type-safe interface to interact with all U-KOMI API endpoints. APIs do not require access_token; use the API key only.

Example

typescript
import { UKomiSDK } from '@ukomi/react-native-sdk';

const sdk = new UKomiSDK({
  apiKey: 'your-api-key'
});

const reviews = await sdk.reviews().getAllReviewsBasic();

Constructors

Constructor

ts
new UKomiSDK(config: UKomiSDKConfig): UKomiSDK;

Creates a new UKomiSDK instance.

Parameters

config

UKomiSDKConfig

SDK configuration with API key (no access token or secret required)

Returns

UKomiSDK

Methods

groups()

ts
groups(): GroupAPI;

Gets the Group API client for group-related operations.

Returns

GroupAPI

GroupAPI instance


orderAPI()

ts
orderAPI(): OrderAPI;

Gets the Order API client for order-related operations.

Returns

OrderAPI

OrderAPI instance


productAPI()

ts
productAPI(): ProductAPI;

Gets the Product API client for product-related operations.

Returns

ProductAPI

ProductAPI instance


questions()

ts
questions(): QuestionAPI;

Gets the Question API client for question and answer operations.

Returns

QuestionAPI

QuestionAPI instance


reviews()

ts
reviews(): ReviewAPI;

Gets the Review API client for review-related operations.

Returns

ReviewAPI

ReviewAPI instance