# stipop-js-sdk

> stipop sticker sdk

Latest version **0.0.3-beta** (published 2022-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install stipop-js-sdk
pnpm add stipop-js-sdk
yarn add stipop-js-sdk
bun add stipop-js-sdk
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.3-beta |
| Published | 2022-04-13 |
| First published | 2021-12-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 82.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stipop |
| Maintainers | stipop |
| Keywords | stipop, sticker, sticker-api, api |

## Links

- npm: https://www.npmjs.com/package/stipop-js-sdk
- Repository: https://github.com/stipop-development/stipop-js-sdk
- Homepage: https://stipop.io
- Issues: https://github.com/stipop-development/stipop-js-sdk/issues
- npm.io page: https://npm.io/package/stipop-js-sdk

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.5.12
- [querystringify](https://npm.io/package/querystringify.md) ^2.2.0

## Recent versions

- 0.0.3-beta (latest) — 2022-04-13
- 0.0.2-beta — 2021-12-27
- 0.0.1-beta — 2021-12-27

## README

## Stipop Javascript SDK

> Quick guide to Stipop Javascript SDK 
> [Link to Docs](https://docs.stipop.io/en)


## Installation
stipop-js-sdk can be installed on Linux, Mac OS or Windows without any issues.

```bash
npm install --save stipop-js-sdk 
```

## Getting API key
To use the Javascript SDK you need your api key.

You can get the api key by signing up and creating an application in [Stipop Dashboard](https://dashboard.stipop.io).


## Get started
### es5
```javascript
const Stipop = require('stipop-js-sdk');
const client = new Stipop(`${YOUR_API_KEY}`, 'v1');
```
### es6
```javascript 
import Stipop from 'stipop-js-sdk';
const client = new Stipop(`${YOUR_API_KEY}`, 'v1');
```

## List of features

| Method                                                            | Return Type         |
| ----------------------------------------------------------------- | ------------------- |
| [getPack()](#getpack)                                             | `Promise<Object>`   |
| [getPackInfo()](#getpackinfo)                                     | `Promise<Object>`   |
| [getPackRecent()](#getpackrecent)                                 | `Promise<Object>`   |
| [getPackSendSticker()](#getpacksendsticker)                       | `Promise<Object>`   |
| [getPackFrequentlySticker()](#getpackfrequentlysticker)           | `Promise<Object>`   |
| [getCuration()](#getcuration)                                     | `Promise<Object>`   |
| [getSearch()](getsearch#)                                         | `Promise<Object>`   |
| [getKeyword()](#getkeyword)                                       | `Promise<Object>`   |
| [getKeywordRecent()](#getkeywordrecent)                           | `Promise<Object>`   |
| [deleteKeywordAll()](#deletekeywordall)                           | `Promise<Object>`   |
| [deleteKeyword()](#deletekeyword)                                 | `Promise<Object>`   |
| [downloadPack()](#downloadpack)                                   | `Promise<Object>`   |
| [downloadList()](#downloadlist)                                   | `Promise<Object>`   |
| [init()](#init)                                                   | `Promise<Object>`   |
| [mysticker()](#mysticker)                                         | `Promise<Object>`   |
| [mystickerHideList()](#mystickerhidelist)                         | `Promise<Object>`   |
| [mystickerHide()](#mystickerhide)                                 | `Promise<Object>`   |
| [myStickerOrder()](#mystickerorder)                               | `Promise<Object>`   |
| [myStickerFavoriteList()](#mystickerfavoritelist)                 | `Promise<Object>`   |
| [myStickerFavorite()](#mystickerfavorite)                         | `Promise<Object>`   |

---


### getPack()

get the trending Package List

### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | false          |
| countryCode   | Specify default country for local stickers. </br> Use a 2-letter ISO 3166-1 country code.</br> <b>Default Value: US</b> | String        | false             |
| animated   | <b>Y</b>: Look for animated stickers only</br> <b>N</b>: Look for static(still) stickers only</br> <b>Empty parameter:</b>Look for all stickers|String|false|
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |


### Examples
```js
const params = {
    userId: '9937',
    lang: en,
    countryCode: US,
    pageNumber:1,
    limit:10
}

const data = await client.getPack(params);
```

### Response Format
```json
{
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
        "packageList": [
        {
            "packageId": 2309,                          
            "packageName": "cada día",                    
            "packageImg": "https://img....70AAeHBn4N.png", 
            "packageCategory": "Animation/Cartoon,Gag", 
            "packageKeywords": "bonito,mono,bello,adorable,life,cute,lovely", 
            "packageAnimated": "N",                       
            "isNew": "N",                               
            "artistName": "pinono",                     
            "language": "Spanish",                         
            "isDownload": "Y",                             
                "isWish": "N"					
        },
        {
            "packageId": 2473,
            "packageName": "¿Cómo estás?",
            "packageImg": "https://img.....Ggdu7s3J15.gif",
            "packageCategory": "Phrases,Etc.",
            "packageKeywords": "¿Cómoestás?,letra",
            "packageAnimated": "Y",
            "isNew": "N",
            "artistName": "annapig",
            "language": "Spanish",
                "isDownload": "Y",                             
                "isWish": "N"					 
        },
        ......
        ],
        "pageMap": {
          "pageNumber": 1,
          "onePageCountRow": 10,
          "totalCount": 2953,
          "pageCount": 296,
          "groupCount": 30,
          "groupNumber": 0,
          "pageGroupCount": 10,
          "startPage": 1,
          "endPage": 10,
          "startRow": 0,
          "endRow": 10,
          "modNum": 3,
          "listStartNumber": 2953
        }
    }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string|	Sticker package ID			     |
|packageName	|int	|Sticker package name				     |
|packageImg	|string|	Main image of sticker package		     |
|packageCategory|int	|Sticker package category			     |
|packageKeywords|string|	Sticker package keyword			     |
|packageAnimated|int	|Is sticker animated (Y/N)			     |
|price		|string|	Price of sticker pack: [Free] [$0.99] [$1.99]|
|isNew		|string|	Is sticker new (Y/N)			     |
|artistName	|int	|Name of the artist				     |
|language	|string|	Main language of sticker package	     |
|isDownload	|string|	Is sticker downloaded by the user (Y/N)	     |
|isWish		|string|	Is sticker in wish list (Y/N)		     |

---

### getPackInfo
The Sticker Pack Info API contains all the sticker images and package information you need to display a sticker pack page.

### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| packId | The [packId] of a sticker pack, NOT stickerId.</br>Example: 6363, 5636, 5859 | string | true|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |

### Examples
```js
const params = {
    userId: '9937',
    packId: 118
}

const data = await client.getPackInfo(params);
```

### Response Format
```json
{
  "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
  },
  "body": {
      "package": {
        "packageId": 118,                      
        "artistName": "MightyCat",            
        "packageName": "Stuart",                
        "packageImg": "https://img....png",   
        "packageAnimated": "N",                
        "packageCategory": "Animation/Cartoon", 
        "packageKeywords": "Stuart,Sticker",    
        "isNew": "N",                           
        "language": "English",                  
        "isDownload": "Y",                            
        "isWish": "N",					
        "stickers": [                          
            {
                "stickerId": 790,              
                "packageId": 118,               
                "stickerImg": "https://img...._5_2.png" 
            },
            {
                "stickerId": 791,
                "packageId": 118,
                "stickerImg": "https://img....._6_1.png"
            }
            ......
        ]
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string	|Sticker package ID			    |
|packageName	|int	|Sticker package name			    |
|packageImg	|string	|Main image of sticker package		    |
|packageCategory|int	|Sticker package category		    |
|packageKeywords|string	|Sticker package keyword		    |
|packageAnimated|int	|Is sticker animated (Y/N)		    |
|isNew		|string	|Is sticker new (Y/N)			    |
|artistName	|int	|Name of the artist			    |
|language	|string	|Main language of sticker package	    |
|isDownload	|string	|Is sticker downloaded by the user (Y/N)    |
|isWish		|string	|Is sticker in wish list (Y/N)		    |
|stickers	|string	|List of stickers within the sticker package|
|stickerId	|string	|Sticker ID				    |
|stickerImg	|string	|Sticker image url			    |

---

### getPackRecent()

The Recently Viewed Packs API gives the list of sticker packs a user has viewed recently

### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    userId: '9937',
    pageNumber:1,
    limit:20
}

const data = await client.getPackRecent(params);
```

### Response Format
```json
{
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
        "packageList": [
        {
            "packageId": 2309,                          
            "packageName": "cada día",                    
            "packageImg": "https://img....70AAeHBn4N.png", 
            "packageCategory": "Animation/Cartoon,Gag", 
            "packageKeywords": "bonito,mono,bello,adorable,life,cute,lovely", 
            "packageAnimated": "N",                       
            "isNew": "N",                               
            "artistName": "pinono",                     
            "language": "Spanish",                         
            "isDownload": "Y",                             
                "isWish": "N"					
        },
        {
            "packageId": 2473,
            "packageName": "¿Cómo estás?",
            "packageImg": "https://img.....Ggdu7s3J15.gif",
            "packageCategory": "Phrases,Etc.",
            "packageKeywords": "¿Cómoestás?,letra",
            "packageAnimated": "Y",
            "isNew": "N",
            "artistName": "annapig",
            "language": "Spanish",
                "isDownload": "Y",                             
                "isWish": "N"					 
        },
        ......
        ],
        "pageMap": {
          "pageNumber": 1,
          "onePageCountRow": 10,
          "totalCount": 2953,
          "pageCount": 296,
          "groupCount": 30,
          "groupNumber": 0,
          "pageGroupCount": 10,
          "startPage": 1,
          "endPage": 10,
          "startRow": 0,
          "endRow": 10,
          "modNum": 3,
          "listStartNumber": 2953
        }
    }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string|	Sticker package ID			     |
|packageName	|int	|Sticker package name				     |
|packageImg	|string|	Main image of sticker package		     |
|packageCategory|int	|Sticker package category			     |
|packageKeywords|string|	Sticker package keyword			     |
|packageAnimated|int	|Is sticker animated (Y/N)			     |
|price		|string|	Price of sticker pack: [Free] [$0.99] [$1.99]|
|isNew		|string|	Is sticker new (Y/N)			     |
|artistName	|int	|Name of the artist				     |
|language	|string|	Main language of sticker package	     |
|isDownload	|string|	Is sticker downloaded by the user (Y/N)	     |
|isWish		|string|	Is sticker in wish list (Y/N)		     |


### getPackSendSticker()
The Recently Sent Stickers API gives the list of stickers which a user has sent in recent order


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    userId: '9937',
    pageNumber:1,
    limit:20
}

const data = await client.getPackSendSticker(params);

```

### Response Format
```json
{
  "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
  },
  "body": {
  	"stickerList": [
        {
            "stickerId": 3684,					
            "packageId": 347,						
            "stickerImg": "https://img.....l_08.png"	
        },
        {
            "stickerId": 3683,
            "packageId": 347,
            "stickerImg": "https://img...._07.png"
        }
    ],
    "pageMap": {
      "pageNumber": 1,
      "onePageCountRow": 20,
      "totalCount": 2,
      "pageCount": 1,
      "groupCount": 1,
      "groupNumber": 0,
      "pageGroupCount": 10,
      "startPage": 1,
      "endPage": 1,
      "startRow": 0,
      "endRow": 20,
      "modNum": 1,
      "listStartNumber": 1
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string	|Sticker package ID			    |
|stickerId	|string	|Sticker ID				    |
|stickerImg	|string	|Sticker image url			    |


### getPackFrequentlySticker()
The Frequently Sent Stickers API gives the list of stickers which a user has used most frequently on any chat interface.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    userId: '9937',
    pageNumber:1,
    limit:20
}

const data = await client.getPackFrequentlySticker(params);
```

### Response Format
```json
{
  "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
  },
  "body": {
  	"stickerList": [
        {
            "stickerId": 3684,					
            "packageId": 347,						
            "stickerImg": "https://img.....l_08.png"	
        },
        {
            "stickerId": 3683,
            "packageId": 347,
            "stickerImg": "https://img...._07.png"
        }
    ],
    "pageMap": {
      "pageNumber": 1,
      "onePageCountRow": 20,
      "totalCount": 2,
      "pageCount": 1,
      "groupCount": 1,
      "groupNumber": 0,
      "pageGroupCount": 10,
      "startPage": 1,
      "endPage": 1,
      "startRow": 0,
      "endRow": 20,
      "modNum": 1,
      "listStartNumber": 1
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string	|Sticker package ID			    |
|stickerId	|string	|Sticker ID				    |
|stickerImg	|string	|Sticker image url			    |

### getCuration()
Get list of curation stickers


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| type | A : weekly stickers</br> B: 배너| string | true |
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | true          |
| countryCode   | Specify default country for local stickers. </br> Use a 2-letter ISO 3166-1 country code.</br> <b>Default Value: US</b> | String        | true           |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    type: 'A',
    userId: '9937',
    lang: 'en',
    countryCode: 'US'
    pageNumber:1,
    limit:20
}

const data = await client.getCuration(params);
```

### Response Format
```json
{
  "header": { "code": "0000", "status": "success", "message": "success" },
  "body": {
    "card": {
      "cardId": 2,
      "title": "Today’s Sticker",
      "type": "B",
      "imgUrl": null,
      "language": "en",
      "country": "us",
      "packageList": [{
        "packageId": 8036,
        "packageName": null,
        "artistName": null,
        "packageImg": null,
        "stickerImg": null,
        "cardImgUrl": "https://img...mLAVMWt.png",
        "lightBackgroundCode": "#EAFDA9",
        "darkBackgroundCode": "#F1FFC2",
        "isDownload": "N",
        "stickers": null
      },
      ....
      ]
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
| cardId	    | Integer |	|
| title	    | string |	|
| type	    | string |	|
| imgUrl	    | string |	|
| language   | string |	|
| country    | string |	|
| packageList| array<object> | |


### getSearch()
The Sticker Search API let's users search for stickers with search tags


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| q | Search tag term or phrase. Supports 40+ languages. | string | true |
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | true          |
| countryCode   | Specify default country for local stickers. </br> Use a 2-letter ISO 3166-1 country code.</br> <b>Default Value: US</b> | String        | true           |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |


### Examples
```js
const params = {
    userId: '9937',
    q: 'cute',
    lang: 'en',
    pageNumber:1,
    limit:20
}

const data = await client.getSearch(params);
```

### Response Format
```json
{
  {
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
      "stickerList": [
        {
          "stickerId": 51229,
          "keyword": "cute",
          "stickerImg": "https://img....70AAeHBn4N.png"
        },
        {
          "stickerId": 50899,
          "keyword": "cute",
          "stickerImg": "https://img....70AAeHBn4N.png"
        },
        {
          "stickerId": 50898,
          "keyword": "cute",
          "stickerImg": "https://img....70AAeHBn4N.png"
        },
        ................
      ],
      "pageMap": {
        "pageNumber": 1,
        "onePageCountRow": 10,
        "totalCount": 80,
        "pageCount": 8,
        "groupCount": 1,
        "groupNumber": 0,
        "pageGroupCount": 10,
        "startPage": 1,
        "endPage": 8,
        "startRow": 0,
        "endRow": 10,
        "modNum": 10,
        "listStartNumber": 80
      }
    }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|stickerId	|string|	Sticker ID	      |
|keyword	|string|	Search tag	      |
|packageName	|Integer	| Sticker package name| 
|stickerImg	|string|	Sticker image url|


### getKeyword()
Use the Trending Search Terms API to show search tag suggestions based on trendy searches made by users.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | false          |
| countryCode   | Specify default country for local stickers. </br> Use a 2-letter ISO 3166-1 country code.</br> <b>Default Value: US</b> | String        | false           |


### Examples
```js
const params = {
    userId: '9937',
    lang: 'en',
    countryCode: 'US'
}

const data = await client.getKeyword(params);
```

### Response Format
```json
{
  {
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
      "keywordList": [
      {
        "keyword": "hi"
      },
      {
        "keyword": "hello"
      },
      {
        "keyword": "thanks"
      }
    ]
    }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|keyword	|string|	Search tag	      |


### getKeywordRecent()
The Recent Search API shows a list of recent search tags made by a user.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |


### Examples
```js
const params = {
    userId: '9937'
}

const data = await client.getKeywordRecent(params);
```

### Response Format
```json
{
  {
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
      "keywordList": [
      {
        "keyword": "hi"
      },
      {
        "keyword": "hello"
      },
      {
        "keyword": "thanks"
      }
    ]
    }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|keyword	|string|	Search tag	      |


### deleteKeywordAll()
Delete all keywords


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |


### Examples
```js
const params = {
    userId: '9937'
}

const data = await client.deleteKeywordAll(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```


### deleteKeyword()
Delete individual keywords


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| keyword | Keyword you'd like to delete | String | true |

### Examples
```js
const params = {
    userId: '9937',
    keyword: 'cute'
}

const data = await client.deleteKeyword(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```

### downloadPack()
The Recent Search API shows a list of recent search tags made by a user.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| packageId | The [packageId] of a sticker pack, NOT stickerId.</br>Example: 6363, 5636, 5859 | string | true|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| isPurchase | Free Sticker Store: Set isPurchase as N.<br/> Paid Sticker Store: Set isPurchase as Y.</br>Sticker Subscription: Set isPurchase as S.| String| false|
| price | If isPurchase is Y, the default price is set for stickers. </br> Default Price: Still Stickers [$0.99], Animated Stickers [$1.99]| String | false |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | false          |
| countryCode   | Specify default country for local stickers. </br> Use a 2-letter ISO 3166-1 country code.</br> <b>Default Value: US</b> | String        | false           |

### Examples
```js
const params = {
    packageId: 118,
    userId: '9937'
}

const data = await client.downloadPack(params);
```

### Response Format
```json
{
  {
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": []
    }
}
```


### downloadList()
List of sticker packs downloaded

### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |


### Examples
```js
const params = {
    userId: '9937',
    pageNumber: 1,
    limit: 10
}

const data = await client.downloadList(params);
```

### Response Format
```json
{
  {
    "header": {
      "code": "0000",
      "status": "success",
      "message": "success"
    },
    "body": {
        "packageList": [
        {
            "packageId": 2309,                          
            "packageName": "cada día",                    
            "packageImg": "https://img....70AAeHBn4N.png", 
            "packageCategory": "Animation/Cartoon,Gag", 
            "packageKeywords": "bonito,mono,bello,adorable,life,cute,lovely", 
            "packageAnimated": "N",                       
            "isNew": "N",                               
            "artistName": "pinono",                     
            "language": "Spanish",                         
            "isDownload": "Y",                             
            "isWish": "N"					
        },
        {
            "packageId": 2473,
            "packageName": "¿Cómo estás?",
            "packageImg": "https://img.....Ggdu7s3J15.gif",
            "packageCategory": "Phrases,Etc.",
            "packageKeywords": "¿Cómoestás?,letra",
            "packageAnimated": "Y",
            "isNew": "N",
            "artistName": "annapig",
            "language": "Spanish",
            "isDownload": "Y",                             
             "isWish": "N"					 
        },
        ......
        ],
        "pageMap": {
          "pageNumber": 1,
          "onePageCountRow": 10,
          "totalCount": 2953,
          "pageCount": 296,
          "groupCount": 30,
          "groupNumber": 0,
          "pageGroupCount": 10,
          "startPage": 1,
          "endPage": 10,
          "startRow": 0,
          "endRow": 10,
          "modNum": 3,
          "listStartNumber": 2953
        }
    }
}
```


| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string|	Sticker package ID			     |
|packageName	|int	|Sticker package name				     |
|packageImg	|string|	Main image of sticker package		     |
|packageCategory|int	|Sticker package category			     |
|packageKeywords|string|	Sticker package keyword			     |
|packageAnimated|int	|Is sticker animated (Y/N)			     |
|isNew		|string|	Is sticker new (Y/N)			     |
|artistName	|int	|Name of the artist				     |
|language	|string|	Main language of sticker package	     |
|isDownload	|string|	Is sticker downloaded by the user (Y/N)	     |
|isWish		|string|	Is sticker in wish list (Y/N)		     |



### init()
Add default stickers for users


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| lang          | Specify default language for regional stickers.</br> Use a 2-letter ISO 639-1 language code. </br><b>Default Value: en</b> | String        | false          |

### Examples
```js
const params = {
    userId: '9937',
    lang: 'en'
}

const data = await client.init(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```


### mysticker()
The My Sticker Packs API gives the list of stickers which a user has downloaded or purchased.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    userId: '9937',
    pageNumber: 1,
    limit : 10
}

const data = await client.mysticker(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": {
    packageList: [
      "packageList": [
        {
            "packageId": 2309,                          
            "packageName": "cada día",                    
            "packageImg": "https://img....70AAeHBn4N.png", 
            "packageCategory": "Animation/Cartoon,Gag", 
            "packageKeywords": "bonito,mono,bello,adorable,life,cute,lovely", 
            "packageAnimated": "N",
            "order": 7,
            "isNew": "N",                               
            "artistName": "pinono",                     
            "language": "Spanish",                         
            "isDownload": "Y",                             
            "isWish": "N"					
        },
        {
            "packageId": 2473,
            "packageName": "¿Cómo estás?",
            "packageImg": "https://img.....Ggdu7s3J15.gif",
            "packageCategory": "Phrases,Etc.",
            "packageKeywords": "¿Cómoestás?,letra",
            "packageAnimated": "Y",
            "order": 8,
            "isNew": "N",
            "artistName": "annapig",
            "language": "Spanish",
            "isDownload": "Y",                             
             "isWish": "N"					 
        },
     ]
    "pageMap": {
      "pageNumber": 1,
      "onePageCountRow": 20,
      "totalCount": 2,
      "pageCount": 1,
      "groupCount": 1,
      "groupNumber": 0,
      "pageGroupCount": 10,
      "startPage": 1,
      "endPage": 1,
      "startRow": 0,
      "endRow": 20,
      "modNum": 2,
      "listStartNumber": 2
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string|	Sticker package ID			     |
|packageName	|int	|Sticker package name				     |
|packageImg	|string|	Main image of sticker package		     |
|packageCategory|int	|Sticker package category			     |
|packageKeywords|string|	Sticker package keyword			     |
|packageAnimated|int	|Is sticker animated (Y/N)			     |
|order|int	| 순서			     |
|isNew		|string|	Is sticker new (Y/N)			     |
|artistName	|int	|Name of the artist				     |
|language	|string|	Main language of sticker package	     |
|isDownload	|string|	Is sticker downloaded by the user (Y/N)	     |
|isWish		|string|	Is sticker in wish list (Y/N)		     |

### mystickerHideList()
The Hidden Sticker Packs API gives the list of sticker packs which a user has hidden (or deleted in case of free sticker packs) from the user’s my stickers list using the Hide/Recover My Pack API.

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| pageNumber   | Specify pageNumber to show <b>limit</b> number of stickers per page. | Integer        | false             |
| limit   | The maximum number of stickers per page. </br>Use pageNumber accordingly for optimized sticker view. </br> <b>Default Value: 20 (max: 50)</b> | Integer  | false  |

### Examples
```js
const params = {
    userId: '9937',
    pageNumber: 1,
    limit : 10
}

const data = await client.mystickerHideList(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": {
    packageList: [
      "packageList": [
        {
            "packageId": 2309,                          
            "packageName": "cada día",                    
            "packageImg": "https://img....70AAeHBn4N.png", 
            "packageCategory": "Animation/Cartoon,Gag", 
            "packageKeywords": "bonito,mono,bello,adorable,life,cute,lovely", 
            "packageAnimated": "N",                       
            "isNew": "N",                               
            "artistName": "pinono",                     
            "language": "Spanish",                         
            "isDownload": "Y",                             
            "isWish": "N"					
        },
        {
            "packageId": 2473,
            "packageName": "¿Cómo estás?",
            "packageImg": "https://img.....Ggdu7s3J15.gif",
            "packageCategory": "Phrases,Etc.",
            "packageKeywords": "¿Cómoestás?,letra",
            "packageAnimated": "Y",
            "isNew": "N",
            "artistName": "annapig",
            "language": "Spanish",
            "isDownload": "Y",                             
            "isWish": "N"					 
        },
     ]
    "pageMap": {
      "pageNumber": 1,
      "onePageCountRow": 20,
      "totalCount": 2,
      "pageCount": 1,
      "groupCount": 1,
      "groupNumber": 0,
      "pageGroupCount": 10,
      "startPage": 1,
      "endPage": 1,
      "startRow": 0,
      "endRow": 20,
      "modNum": 2,
      "listStartNumber": 2
    }
  }
}
```

| Attribute Name | Type | Description |
| -------------- | ---- | ----------- |
|packageId	|string|	Sticker package ID			     |
|packageName	|int	|Sticker package name				     |
|packageImg	|string|	Main image of sticker package		     |
|packageCategory|int	|Sticker package category			     |
|packageKeywords|string|	Sticker package keyword			     |
|packageAnimated|int	|Is sticker animated (Y/N)			     |
|isNew		|string|	Is sticker new (Y/N)			     |
|artistName	|int	|Name of the artist				     |
|language	|string|	Main language of sticker package	     |
|isDownload	|string|	Is sticker downloaded by the user (Y/N)	     |
|isWish		|string|	Is sticker in wish list (Y/N)		     |


### mystickerHide()
The Hide/Recover My Sticker Pack API allows for the user to hide or recover any sticker packages from the user’s my sticker list.


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| packageId | The [packageId] of a sticker pack, NOT stickerId.</br>Example: 6363, 5636, 5859 | string | true|

### Examples
```js
const params = {
    userId: '9937',
    packageId: '118'
}

const data = await client.mystickerHide(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```

### myStickerOrder()
Change order of my sticker packs


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| currentOrder | Current order of a sticker pack | Integer | true|
| newOrder | New order of a sticker pack | Integer | true|

### Examples
```js
const params = {
    userId: '9937',
    currentOrder: 7,
    newOrder: 5
}

const data = await client.mystickerHide(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```


### myStickerFavoriteList()
List of my favorite stickers


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |

### Examples
```js
const params = {
    userId: '9937'
}

const data = await client.myStickerFavoriteList(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": {
    "favoriteList": [
      {
        "stickerId": 790,
        "stickerImg": "https://img.....png",
        "favoriteYN": "Y"
      },
      .....
    ]
  }
}
```


### myStickerFavorite()
Selecting my favorite stickers


### Params

| Name          | Description           | Type          | Required          |
| --------------| ----------------------| --------------| ------------------|
| userId        | Unique value for every user to distinguish unique users. </br>The userId can be in any string format. </br> <b>Important</b>: Using same userId for multiple users is not allowed. |String        | true              |
| stickerId | Sticker ID | string | true|

### Examples
```js
const params = {
    userId: '9937',
    stickerId: 790
}

const data = await client.myStickerFavorite(params);
```

### Response Format
```json
{
  "header": {
    "code": "0000",
    "status": "success",
    "message": "success"
  },
  "body": []
}
```

---
_Source: https://npm.io/package/stipop-js-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
