PubNub Integration

Stipop Chat Stickers

Language

Language

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 over 250,000 unique stickers 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 a wonderful chat experience, letting them express plentiful emotions along the way. Simply begin by generating unique Stipop API Key for free by signing into Stipop Dashboard and build your very special chat service using Stipop PubNub block feature. To learn more about Stipop Chat Sticker API, please visit How it works on Stipop or checkout the sticker API documentation.

In order to use this block, click on Try it now! , 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 a 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 the value is left empty then, no other publish action will occur.

  3. OPTIONAL: change CACHE_TTL to accommodate 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

{
  "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"					 
          },
          ......
        ]
  }
}

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

{
  "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"
            }
            ......
        ]
    }
  }
}

Feedback & Support

Need help? Contact PubNub Support.


Talk to an expert

Contact Sales