Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

nilto

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

nilto

JavaScript SDK Client for NILTO.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

nilto

NPM Version build codecov License

Overview

JavaScript SDK Client for NILTO.

Installation

You can install this library using npm:

npm install nilto

Functions

getContents(params?: GetContentsParams): Promise<GetContentsResponse>

指定した条件に合うコンテンツの配列を取得します。

Parameters

ParameterTypeDescription
paramsGetContentsParamsコンテンツの絞り込み条件。

Returns

TypeDescription
Promise<GetContentsResponse>コンテンツの配列および関連メタデータを含むレスポンスオブジェクト。

Usage Example

import { Nilto } from "nilto";

const nilto = new Nilto("your-api-key");
const params: GetContentsParams = {
  model: "blog_articles",
  limit: 10,
  offset: 0,
};
const contentsResponse = await nilto.getContents(params);
console.log(contentsResponse.contents);

getContentsID(contentId: string): Promise<GetContentResponse>

指定した ID のコンテンツを取得します。

Parameters

ParameterTypeDescription
contentIdstring取得するコンテンツの ID。

Returns

TypeDescription
Promise<GetContentResponse>指定されたコンテンツ ID に対応するコンテンツデータを含むレスポンスオブジェクト。

Usage Example

import { Nilto } from "nilto";

const nilto = new Nilto("your-api-key");
const contentId = "12345";
const contentResponse = await nilto.getContentsID(contentId);
console.log(contentResponse.content);

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts