magic-point-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

Magic Point Software Developer Kit

Integrate the magic-point-sdk into your project to utilize its features across your entire application. This guide covers installation and setup for various JavaScript frameworks using TypeScript.

* Just need to initialize, everything is setted up by Magic Point.

Installation

Install the magic-point-sdk using npm, run the following command:

npm install magic-point-sdk

Usage

To use magic-point-sdk add following lines of code into your entry file (index.js/ts, main.js/ts, ...)

/// your imports
import MagicPoint from 'magic-point-sdk'

/// your code
new MagicPoint({apiKey: 'your-api-key-here'}) //Replaced `'your-api-key-here'` with your actual API key from Magic Point Management.

Code Example

import MagicPoint from './magic-point-sdk'
new MagicPoint({apiKey: 'generate-on-management-page',
                lng: "en",
                breakpoints: {
                    aKeyName: 120,
                    anotherKeyName: 576,
                    ...,
                    andSoOn: 1200
                }})

Options

key type default values note
apiKey string '' Generate on Management Page
lng string "en" "en", "ja"
breakpoints object: {sm: 576, md: 768, lg: 992, xl: 1200, xxl: 1400} {key: number} Key name and value (number) is up to you, no restricted

Package Sidebar

Install

npm i magic-point-sdk

Weekly Downloads

1

Version

0.0.12

License

ISC

Unpacked Size

11.3 MB

Total Files

97

Last publish

Collaborators

  • huan-lt