aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 18:05:58 +0300
committerAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 18:05:58 +0300
commit2182e3069d6bef955a0edd1876d41ba822e5a366 (patch)
tree703ce42c85b4bbafe00dbb1328eeadefbe245e9f /examples
parent4f343e00669f96451bb5a11b7e83c7ecd8503e5a (diff)
Version on webhooks
Diffstat (limited to 'examples')
-rw-r--r--examples/example_1.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/example_1.go b/examples/example_1.go
index a1fb967..5c03063 100644
--- a/examples/example_1.go
+++ b/examples/example_1.go
@@ -1,5 +1,3 @@
-// +build ignore
-
/**
* Webhook example
*/
@@ -30,9 +28,7 @@ func main() {
for _, s := range subs.Subscriptions {
_, _ = api.Unsubscribe(s.Url)
}
- subscriptionResp, err := api.Subscribe(&tamtam.SubscriptionRequestBody{
- Url: " https://576df2ec.ngrok.io/webhook", // Replace by your webhook!
- })
+ subscriptionResp, err := api.Subscribe("https://576df2ec.ngrok.io/webhook", []string{})
log.Printf("Subscription: %#v %#v", subscriptionResp, err)
ch := make(chan interface{}) // Channel with updates from TamTam