Simplified REST API to get stickers from Snap

Overview

Snap Sticker kit REST API

Simplified REST API to get stickers from Snap

💻 Instructions

Search stickers

  • Request:
url = "https://sticker-kit-horizon733.cloud.okteto.net/search_stickers?search_text=morning&results_count=1"
headers = {"api_token": f"Bearer {your-api-token}"}
requests.post(url=url, headers=headers)
  • Reponse:
{
    "stickers": [
        {
            "itemType": "SNAPCHAT_STICKERS",
            "id": "AdUq16II9jTD",
            "pngURL": "https://bolt-gcdn.sc-cdn.net/3/dRORxCGc9jycqgwaRIXoH?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCNSV5usFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=c6ca4264-e12d-4a23-9535-68b9e89829e7",
            "thumbnailURL": "https://bolt-gcdn.sc-cdn.net/3/dRORxCGc9jycqgwaRIXoH?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCNSV5usFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=c6ca4264-e12d-4a23-9535-68b9e89829e7"
        }
    ]
}

Get Trending Stickers

  • Request:
url = "https://sticker-kit-horizon733.cloud.okteto.net/trending_stickers?results_count=1"
headers = {"api_token": f"Bearer {your-api-token}"}
requests.post(url=url, headers=headers)
  • Reponse:
{
    "stickers": [
        {
            "id": "AS0b8vs3e90T",
            "pngURL": "https://bolt-gcdn.sc-cdn.net/3/oirSJQJYAe0DAGwpOnWFq?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCPGJ_PIFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=1de85c89-aefd-4dcd-89d1-fa536242faad",
            "thumbnailURL": "https://bolt-gcdn.sc-cdn.net/3/oirSJQJYAe0DAGwpOnWFq?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCPGJ_PIFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=1de85c89-aefd-4dcd-89d1-fa536242faad"
        }
    ]
}

Search Stickers by Category

  • Request:
url = "https://sticker-kit-horizon733.cloud.okteto.net/stickers_by_category?results_count=1&category_count=1"
headers = {"api_token": f"Bearer {your-api-token}"}
requests.post(url=url, headers=headers)
  • Reponse:
{
    "stickers": [
        {
            "category": "Hi",
            "stickerResults": {
                "items": [
                    {
                        "itemType": "SNAPCHAT_STICKERS",
                        "id": "Ab0LnHrGa3Iv",
                        "pngURL": "https://bolt-gcdn.sc-cdn.net/3/4mpR7vl6N2m7JJ01iwhVc?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCPSm5usFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=889a68a5-7ebc-4d84-9090-ffe1d949caf2",
                        "thumbnailURL": "https://bolt-gcdn.sc-cdn.net/3/4mpR7vl6N2m7JJ01iwhVc?bo=EiIaABoAMgF9OgsEBQcNDxFydHZ3e0IGCPSm5usFSAJQB2AB&uc=7&appID=00f481a8-6716-4af7-ad1c-8a35cd6e00fb&sessionID=889a68a5-7ebc-4d84-9090-ffe1d949caf2"
                    }
                ]
            }
        }
    ]
}

How to get API Token

  • Go to your app, your screen will look like below.

  • Now, Click on Initial Version, Make sure Enable Sticker Kit. It will look like below

  • Go back to Setup, and Scroll down, you will be able to API Tokens copy whichever you want to, make sure your App is in that Active on that Stage. API Token will look like below.

How to Contribute?

  • Make sure to Read Code of Conduct.
  • Help me to test it with every case, to check it works and doesn't crash.
  • Update Code? Sure, If you find anything helpful to be added please. FYI: This is made just to simplify work of Developers of other languages.
You might also like...
Simple Crud Api With Django Rest Framework

SIMPLE CRUD API WITH DJANGO REST FRAMEWORK Django REST framework is a powerful and flexible toolkit for building Web APIs. Requirements Python 3.6 Dja

REST API with Flask. No data persistence.
REST API with Flask. No data persistence.

Flask REST API Python 3.9.7 The Flask experience, without data persistence :D First, to install all dependencies: python -m pip install -r requirement

BloodDonors: Built using Django REST Framework for the API backend and React for the frontend
BloodDonors: Built using Django REST Framework for the API backend and React for the frontend

BloodDonors By Daniel Yuan, Alex Tian, Aaron Pan, Jennifer Yuan As the pandemic raged, one of the side effects was an urgent shortage of blood donatio

Little Library API REST
Little Library API REST

Little Library API REST py 3.10 The only one requeriment it's to have Flask installed.

Build a Backend REST API with Python & Django

Build a Backend REST API with Python & Django Skills Python Django djangorestframework Aws Git Use the below Git commands in the Windows Command Promp

A small project in Python + Flask to demonstrate how to create a REST API

SmartBed-RESTApi-Example This application is an example of how to build a REST API. The application os a mock IoT device, simulating a Smart Bed. Impl

Flask RestAPI Project - Transimage Rest API For Python
Flask RestAPI Project - Transimage Rest API For Python

[ 이미지 변환 플라스크 Rest API ver01 ] 0. Flask Rest API - in SunnyWeb : 이미지 변환 웹의 Flask

Eureka is a Rest-API framework scraper based on FastAPI for cleaning and organizing data, designed for the Eureka by Turing project of the National University of Colombia

Eureka is a Rest-API framework scraper based on FastAPI for cleaning and organizing data, designed for the Eureka by Turing project of the National University of Colombia

DSpace REST API Client Library

DSpace Python REST Client Library This client library allows Python 3 scripts (Python 2 probably compatible but not officially supported) to interact

Owner
Dishant Gandhi
Working on @RasaHQ chatbot, Rasa Hero, Conversational AI Dev and Open Source contributor
Dishant Gandhi
RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.

Microsoft 1.8k Jan 4, 2023
Django-rest-auth provides a set of REST API endpoints for Authentication and Registration

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)

Tivix 2.4k Dec 29, 2022
Mlflow-rest-client - Python client for MLflow REST API

Python Client for MLflow Python client for MLflow REST API. Features: Minimal de

MTS 35 Dec 23, 2022
REST API framework designed for human beings

Eve Eve is an open source Python REST API framework designed for human beings. It allows to effortlessly build and deploy highly customizable, fully f

eve 6.6k Jan 4, 2023
Django REST API with React BoilerPlate

This is a setup of Authentication and Registration Integrated with React.js inside the Django Templates for web apps

Faisal Nazik 91 Dec 30, 2022
Estudo e desenvolvimento de uma API REST

Estudo e desenvolvimento de uma API REST ??‍?? Tecnologias Esse projeto utilizará as seguintes tecnologias: Git Python Flask DBeaver Vscode SQLite ??

Deusimar 7 May 30, 2022
Example Starlette REST API application

The idea of this project is to show how Starlette, Marshmallow, and SQLAlchemy can be combined to create a RESTful HTTP API application that is modular, lightweight, and capable of dealing with many simultaneous requests.

Robert Wikman 0 Jan 7, 2022
JSON:API support for Django REST framework

JSON:API and Django REST framework Overview JSON:API support for Django REST framework Documentation: https://django-rest-framework-json-api.readthedo

null 1k Dec 27, 2022
simple api build with django rest framework

Django Rest API django-rest-framework Employees management simple API in this project wrote test suites for endpoints wrote simple doc string for clas

OMAR.A 1 Mar 31, 2022