supportkit/lobby-boy

语言: Objective-C

git: https://github.com/supportkit/lobby-boy

通过精美简单的应用程序内消息传递Grant的需求
Grant wishes on demand through beautifully simple in-app messaging
README.md (中文)

大堂男孩

一个开源项目,演示如何使用SupportKit通过消息传递为用户提供产品和服务。

当您以这种方式向用户提供产品或服务时,优惠将显示在消息传递UI中的交互式聊天气泡中。只需点击一下泡泡的“购买”按钮,您就可以通过信用卡收取订单并进行订购。这很轻松。

大堂男孩演示了一个简单的工作流程,模仿Magic,Cloe,Ask Alexis等服务。它甚至可以与Stripe一起处理付款!您可以使用“开箱即用”的大堂男孩在几分钟内建立自己的按需,会话式商务业务。

配置大堂男孩

您可以从源代码编译Lobby Boy并与攻击它的团队成员聊天。 (但是,我们实际上无法向您发送任何信息或处理真正的信用卡!)

如果您想根据自己的需要配置Lobby Boy,只需几分钟。您只需要在LBStripeCharger.m中修改一些常量

  1. 在SupportKit.io注册一个帐户
  2. 将kSupportKitAppToken(在LBStripeCharger.m中)设置为您在步骤1中获得的应用令牌。
  3. 注册一个Stripe帐户,并将您的可发布密钥设置为常量kStripePublishableKey。
  4. 跳到我们的后端存储库并点击“Deploy to Heroku”按钮,立即使用Stripe密钥配置并启动Lobby Boy后端。
  5. 指定新部署的后端的URL作为常量kPaymentServerBaseUrl的值。

你准备好了!我们很乐意听取您的反馈意见,请联系我们@supportkit或hello@supportkit.io

提供产品或服务

向用户提供产品或服务很简单,只需使用Slack中的!offer命令,您的优惠就会显示在用户的会话中,并提供购买或查看更多信息的选项。

  1. 为SupportKit应用程序配置Slack集成。
  2. 与您的某个用户交谈时,请使用/ sk!offer命令,语法如下:/ sk!offer [price] [image-url] [product-info-url] [产品名称]例如:!offer 129.99 http ://www.selectism.com/files/2014/03/budapest-nose-2014-01-630x420.jpg http://google.com Air de Panache

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Lobby Boy

An open-source project that demonstrates how you can use SupportKit to offer products and services to your users through messaging.

When you offer a product or service to your users this way, the offer is displayed in an interactive chat bubble in the messaging UI. With a single tap on the bubble's "Buy" button you can charge a credit card and take an order. It's effortless.

Lobby Boy demonstrates a simple workflow modelled after services like Magic, Cloe, Ask Alexis and more. It even works with Stripe to process payments! You can use Lobby Boy "out of the box" to build your own on-demand, conversational commerce business in minutes.

Configuring Lobby Boy

You can compile Lobby Boy from source and chat with members of the team who hacked on it. (However, we won't actually be able to ship you anything or process real credit cards!)

If you want to configure Lobby Boy for your own uses, it only takes a few minutes. You'll only need to modify a few constants in LBStripeCharger.m

  1. Sign up for an account at SupportKit.io
  2. Set kSupportKitAppToken (in LBStripeCharger.m) to the app token you got in step 1.
  3. Sign up for a Stripe account and get set your publishable key as the constant kStripePublishableKey.
  4. Hop over to our backend repository and hit the "Deploy to Heroku" button to instantly configure and launch the Lobby Boy backend with your Stripe secret key.
  5. Specify the URL of your newly deployed backend as the value of the constant kPaymentServerBaseUrl.

You're ready to go! We'd love to hear your feedback, reach us @supportkit or hello@supportkit.io

Offering a product or service

Offering a product or service to your users is easy, just use the !offer command in Slack and your offer will appear in the user's conversation with the option to buy or view more info.

  1. Configure a Slack integration for your SupportKit app.
  2. When speaking to one of your users, use the /sk !offer command with the following syntax: /sk !offer [price] [image-url] [product-info-url] [product name] For example: !offer 129.99 http://www.selectism.com/files/2014/03/budapest-nose-2014-01-630x420.jpg http://google.com Air de Panache