PubNub Integration

Stipop: Sticker Chat

In-app chat

In-app chat

Last Updated:

2020/02/24

Author:

PubNub

StipopStipop API Documentation

Fun and enjoyable chat stickers for better user experience.

Enrich your chat service simply by adding Stipop’s amazing sticker API. Stipop provides a set of customized sticker packs that capture the preferences of your target users, recommended and assorted through Stipop’s millions of user data. This will strongly help you increase user engagement, bring immediate impact to your services, and lead market trends.

Walkthrough

Now, Sticker is a very essential feature for any chat services: Add the world's most favorite sticker API for your fantastic chat service. Grant your users wonderful chat experience, letting them express plentiful emotions along the way. Simply begin by generating Stipop API Key with your account at “Developer”, and build your very special chat service. To learn more about Stipop Chat Sticker API, please visit How to Stipop.

In order to use this block, click on Try it out! , which will guide you through the process of installing the Block code into your PubNub account. After that, you will need to configure your environment a bit more in order to use.

  1. Create a Secret in PubNub Vault, named STIPOP_APIKEY, with value equal to your API Key for the Stipop service.

  2. OPTIONAL: Update PubNub Channel *PN_CHANNEL* to route response data to a PubNub pubsub messaging channel. If value is left empty then, no other publish action will occur.

  3. OPTIONAL: change CACHE_TTL to accomodate longer cache timeouts.

Sticker-Pack API

Example response for an API call to the the PubNub Block that integrates with the Sticker-Pack API.

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers:
Connection: keep-alive
Content-Length: 2136
Content-Type: application/json; charset=utf-8
Date: Mon, 24 Feb 2020 21:37:52 GMT

{
    "code": "0000",
    "packages": [
        {
            "animatedYn": "Y",
            "keywords": "cute,happy,lovely,dog,funny",
            "language": "English",
            "mainImgUrl": "https://img.stipop.io/1541127154229_raon_01.gif",
            "packageId": 645,
            "packageName": "Beagle and Pomeranian 02"
        },
        {
            "animatedYn": "Y",
            "keywords": "CAT,CUTE,ANIMAL,FUN,JOY",
            "language": "English",
            "mainImgUrl": "https://img.stipop.io/2019/8/9/1565350481603_NtxKBejaRV.gif",
            "packageId": 1849,
            "packageName": "CUTE JELLYNYANG"
        }
    ],
    "status": "success"
}

Sticker-ID API

Example response for an API call to the the PubNub Block that integrates with the Sticker-ID API.

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers:
Connection: keep-alive
Content-Length: 2495
Content-Type: application/json; charset=utf-8
Date: Mon, 24 Feb 2020 21:39:42 GMT

{
    "code": "0000",
    "status": "success",
    "stickers": [
        {
            "packageId": 645,
            "stickerId": 10816,
            "stickerImgUrl": "https://img.stipop.io/1541127154229_raon_01.gif"
        },
        {
            "packageId": 645,
            "stickerId": 10818,
            "stickerImgUrl": "https://img.stipop.io/1541127154236_raon_02.gif"
        }] }

Feedback & Support

Need help? Contact PubNub Support.


Talk to an expert

Contact Sales