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.
Owner
Dishant Gandhi
Working on @RasaHQ chatbot, Rasa Hero, Conversational AI Dev and Open Source contributor
Dishant Gandhi
Introduction to Django Rest Framework

Introduction to Django Rest Framework This is the repository of the video series Introduction to Django Rest Framework published on YouTube. It is a s

Simple is Better Than Complex 20 Jul 14, 2022
Turn your API made with Django REST Framework(DRF) into a GraphQL like API.

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.

Yezy Ilomo 575 Jan 05, 2023
Sanic-RESTPlus is an extension for Sanic that adds support for quickly building REST APIs.

Sanic RestPlus Sanic-RESTPlus is an extension for Sanic that adds support for quickly building REST APIs. Sanic-RESTPlus encourages best practices wit

Ashley Sommer 106 Oct 14, 2022
Swagger Documentation Generator for Django REST Framework: deprecated

Django REST Swagger: deprecated (2019-06-04) This project is no longer being maintained. Please consider drf-yasg as an alternative/successor. I haven

Marc Gibbons 2.6k Dec 23, 2022
A RESTful way to use your Notion tables as a database.

rest-notion-db A RESTful way to use your Notion tables as a database. Use-cases Form submissions or frontend websites, use one database that

Oorjit Chowdhary 42 Dec 27, 2022
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

Daniel Yuan 1 Oct 24, 2021
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 04, 2023
A Django api to display items and their current up-to-date prices from different online retailers in one platform.

A Django api to display items and their current up-to-date prices from different online retailers in one platform. Utilizing scrapy to periodically scrape the latest prices from different online reta

Kennedy Ngugi Mwaura 1 Nov 05, 2021
Allows simplified Python interaction with Rapid7's InsightIDR REST API.

InsightIDR4Py Allows simplified Python interaction with Rapid7's InsightIDR REST API. InsightIDR4Py allows analysts to query log data from Rapid7 Insi

Micah Babinski 8 Sep 12, 2022
A lightweight REST miniframework for Python.

restless A lightweight REST miniframework for Python. Documentation is at https://restless.readthedocs.io/. Works great with Django, Flask, Pyramid, T

Daniel Lindsley 824 Nov 20, 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

Robert Wikman 0 Jan 07, 2022
Creating delicious APIs for Django apps since 2010.

django-tastypie Creating delicious APIs for Django apps since 2010. Currently in beta but being used actively in production on several sites. Requirem

3.8k Dec 30, 2022
Authentication for Django Rest Framework

Dj-Rest-Auth Drop-in API endpoints for handling authentication securely in Django Rest Framework. Works especially well with SPAs (e.g React, Vue, Ang

Michael 1.1k Dec 28, 2022
A light REST library for Django.

django-nap Read The Docs: https://django-nap.readthedocs.io/en/latest/ Change log: https://django-nap.readthedocs.io/en/latest/changelog.html An API l

Curtis Maloney 223 Dec 07, 2022
Little Library API REST

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

Luis QuiƱones Requelme 1 Dec 15, 2021
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
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
RESTful Todolist API

RESTful Todolist API GET todolist/ POST todolist/ {"desc" : "Description of task to do"} DELETE todolist/int:id PUT todolist/int:id Requirements D

Gabriel Tavares 5 Dec 20, 2021
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

Luis QuiƱones Requelme 1 Dec 15, 2021