Google 致力于为黑人社区推动种族平等。查看具体举措

Snapchat Sticker Generator

Snap Inc.
Made by Snap Inc.

Creates custom Snapchat stickers based on product metadata.

此扩展程序的运作方式

Use this extension to generate a custom Snapchat Camera sticker (png) and store on a Cloud Storage bucket for the purpose of sharing to Snapchat Stories using Creative Kit.

Creative Kit allows apps and websites to send content to Snapchat for sharing on Stories, while including a url attachment that helps to grow usage and awareness. This extension makes it easy to generate a sticker that is designed to be overlaid on top of the Snapchat camera ( SCSDKNoSnapContent ).

When calling the Snapchat sticker api, this extension:

  • Generates a new transparent png image to specification for sharing over Snapchat Camera with Creative Kit and Creative Kit Web
  • Customizes the image content based on the url and product schema or a provided url
  • Alternatively, customizes the image content based on the product and schema collection data of a Firestore product

Generated images can be cached by providing a path to store cached images.

Detailed configuration information

To configure this extension, specify a Cloud Storage bucket to store the generated images.

Product and Schema collections are optional and can be configured to allow stickers to be generated based on your own products.

Caching is an optional path for storing a generated image and is recommended for better performance.

Additional setup

Before installing this extension, make sure that you've set up a Cloud Storage bucket in your Firebase project.

In the Snap Kit Developer Portal you’ll need to create an account and register your app and/or website to enable sharing to Snapchat via Creative Kit. See docs here: Getting Started and Creative Kit.

Billing

To install an extension, your project must be on the Blaze (pay as you go) plan

  • Cloud Firestore
  • Cloud Functions (Node.js 10+ runtime. See FAQs )
  • Cloud Storage

You are responsible for any costs associated with your use of these services.

如何安装此扩展程序

使用 Firebase 控制台

要安装和管理扩展程序,您可以使用 Firebase 控制台。

使用控制台安装

使用 Firebase CLI

要安装和管理扩展程序,您还可以使用 Firebase CLI:

步骤 1 :运行以下 npm 命令来安装 CLI 或将 CLI 更新到最新版本。

npm install -g firebase-tools
不能运行?请参阅 Firebase CLI 参考文档 或者更改您的 npm 权限

第 2 步 设置一个新的 Firebase 项目目录 或转到现有目录

第 3 步 :将此扩展程序添加到 扩展程序清单

firebase ext:install snap/snapchat-sticker-generator --local --project=projectId_or_alias

Step 4 (Optional): Test this extension locally with the Firebase Emulator Suite

firebase emulators:start

第 5 步 :将清单中的扩展程序 部署 到项目中

firebase deploy --only extensions --project=projectId_or_alias
支持
Cloud Storage Cloud Firestore
作者
许可
Apache-2.0
版本
0.1.0