承接 keithbrink/helpscout-app-spark 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

keithbrink/helpscout-app-spark

Composer 安装命令:

composer require keithbrink/helpscout-app-spark

包简介

A Helpscout integration package for Laravel Spark that allows you to add information about tickets created by customers in Helpscout.

README 文档

README

An Helpscout integration package for Laravel Spark that allows you to add information about tickets created by customers in Helpscout.

It includes two separate functions:

  1. It adds an endpoint for a Helpscout Dynamic App to display information about the user's billing plan and historical data.
  2. It accepts webhooks from Helpscout and processes them based on rules that you set up. By default, it will tag each new ticket with the user's current billing plan.

Installation

This version requires PHP 7, and supports Laravel 5.5+ and Spark 5+.

To get the latest version, simply require the project using Composer:

$ composer require keithbrink/helpscout-app-spark

Configuration - Custom App

Create a custom app in Helpscout, and point the callback URL to your app URL + the following endpoint:

/helpscout-spark-app/custom-app

Add the secret key for the custom app in your .env file:

HS_SPARK_CUSTOM_APP_SECRET=xxxxxx

Configuration - Webhook Rules

Create a new app in Helpscout (under My Apps), and add the following keys in your .env file:

HS_AUTH_TYPE=client_credentials
HS_APP_ID=xxx 
HS_APP_SECRET=xxx

Then, create a new webhook for the endpoint:

/helpscout-spark-app/webhooks

and add your secret key in your .env file:

HS_SPARK_WEBHOOK_SECRET=xxx

Usage

Out of the box, you will have a custom app with the user's current billing plan and other customer data on each ticket, and the webhook will add a tag for the user's current billing plan to each ticket that is created.

It is simple to add your own information to either the custom app or new rules to handle Helpscout webhooks.

Add Custom App Items

To add more items to the custom app, simply copy the KeithBrink/HelpscoutSpark/CustomAppData/Items/Plan, including extending the BaseItem and implementing the ItemContract.

Change the getValue and getName function to whatever you like.

Then, add your rule in your AppServiceProvider register function:

\KeithBrink\HelpscoutSpark\CustomAppData\Items::$items[] = YourItem::class;

Add Webhook Rule

To add another webhook rule, simply copy the KeithBrink/HelpscoutSpark/WebhookRules/Rules/TagConversationWithPlan, including extending the BaseRule and implementing the RuleContract.

The parseWebhook function accepts the webhook, here you should set any properties that you will need from the webhook.

Then, handle the webhook, including interacting with the Helpscout API if necessary, in the handle function.

Then, add your rule in your AppServiceProvider register function:

\KeithBrink\HelpscoutSpark\WebhookRules\Rules::$rules[] = YourRule::class;

License

HelpscoutSpark is licensed under The MIT License (MIT).

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固