Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lumir-company/admin-server-api

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumir-company/admin-server-api

관리자 시스템 API SDK

  • 1.0.4
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-91.74%
Maintainers
0
Weekly downloads
 
Created
Source

@lumir-company/admin-server-api

관리자 시스템 API SDK

Installation

npm install @lumir-company/admin-server-api

Usage

인증

import {
    AuthAPI,
    NoticeAPI,
    PressReleaseAPI,
} from '@lumir-company/admin-server-api';

const authApi = new AuthAPI('http://your-api-url');
const noticeApi = new NoticeAPI('http://your-api-url');
const pressReleaseApi = new PressReleaseAPI('http://your-api-url');

// 로그인
const token = await authApi.login({
    accountId: 'your-id',
    password: 'your-password',
});

// 토큰 설정
noticeApi.setToken(token.accessToken);
pressReleaseApi.setToken(token.accessToken);

팝업 관리

// 팝업 목록 조회
const { items, total } = await noticeApi.getNotices(1, 10);

// 팝업 상세 조회
const notice = await noticeApi.getNoticeById('notice-id');

보도자료 관리

// 보도자료 목록 조회
const { items, total } = await pressReleaseApi.getPressReleases(1, 10);

// 보도자료 상세 조회
const pressRelease =
    await pressReleaseApi.getPressReleaseById('press-release-id');

API Reference

AuthAPI

  • login({ accountId, password }): 로그인하여 토큰을 반환

NoticeAPI

  • setToken(token): API 요청에 사용할 토큰 설정
  • getNotices(page, limit): 팝업 목록 조회
  • getNoticeById(id): 특정 팝업 조회

PressReleaseAPI

  • setToken(token): API 요청에 사용할 토큰 설정
  • getPressReleases(page, limit): 보도자료 목록 조회
  • getPressReleaseById(id): 특정 보도자료 조회

FAQs

Package last updated on 05 Dec 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc