Skip to content

Commit

Permalink
API-13513: fix examples/echo (#164)
Browse files Browse the repository at this point in the history
- assigned required `type` parameter while calling register_webhook
- removed missleading readme mention
  • Loading branch information
mpasterny authored May 27, 2024
1 parent e271928 commit 0a6bb9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion examples/echo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
4. Add `webhooks--all:rw` and `chats--all:rw` to the list of requested scopes.
5. Use `$NGROK_PUBLIC_URL/oauth` as the Direct installation URL in the Marketplace authorization flow settings section.

**Attention!** For production applications, you can skip point 4.5.
Having troubles? Visit docs dedicated page for [creating LiveChat apps](https://developers.livechatinc.com/docs/getting-started/guides/#creating-livechat-apps).

## Running this example
Expand Down
1 change: 1 addition & 0 deletions examples/echo/installation-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (h *InstallationHandler) Handle(w http.ResponseWriter, r *http.Request) {
URL: h.cfg.WebhookURL,
Description: "echo integration",
Filters: &configuration.WebhookFilters{AuthorType: "customer"},
Type: "license",
}

whID, err := api.RegisterWebhook(wh, nil)
Expand Down

0 comments on commit 0a6bb9b

Please sign in to comment.