mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
integrations: Add webhook payloads for Facebook.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"changes":[
|
||||
{
|
||||
"field":"plugin_comment",
|
||||
"value":{
|
||||
"created_time":"2018-01-02T16:53:38+0000",
|
||||
"message":"Test Comment",
|
||||
"from":{
|
||||
"name":"Test User",
|
||||
"id":"4444444444"
|
||||
},
|
||||
"id":"4444444444_4444444444"
|
||||
}
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"time":1514912018
|
||||
}
|
||||
],
|
||||
"object":"application"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"changes":[
|
||||
{
|
||||
"field":"plugin_comment_reply",
|
||||
"value":{
|
||||
"created_time":"2018-01-03T10:45:42+0000",
|
||||
"message":"Test Comment",
|
||||
"from":{
|
||||
"name":"Test User",
|
||||
"id":"4444444444"
|
||||
},
|
||||
"id":"4444444444_4444444444",
|
||||
"parent":{
|
||||
"created_time":"2017-12-22T20:59:02+0000",
|
||||
"message":"Test Parent Comment",
|
||||
"from":{
|
||||
"name":"Test User 1",
|
||||
"id":"4444444444"
|
||||
},
|
||||
"id":"4444444444_44444444"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"time":1514976343
|
||||
}
|
||||
],
|
||||
"object":"application"
|
||||
}
|
||||
18
zerver/webhooks/facebook/fixtures/page_conversation.json
Normal file
18
zerver/webhooks/facebook/fixtures/page_conversation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"changes":[
|
||||
{
|
||||
"field":"conversations",
|
||||
"value":{
|
||||
"thread_id":"t_mid.14833205540:9182a4e489",
|
||||
"page_id":4444444
|
||||
}
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"time":1514911876
|
||||
}
|
||||
],
|
||||
"object":"page"
|
||||
}
|
||||
14
zerver/webhooks/facebook/fixtures/page_website.json
Normal file
14
zerver/webhooks/facebook/fixtures/page_website.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"changes":[
|
||||
{
|
||||
"field":"website"
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"time":1514911950
|
||||
}
|
||||
],
|
||||
"object":"page"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"time":1514912190,
|
||||
"id":"0",
|
||||
"changed_fields":[
|
||||
"ads_management"
|
||||
],
|
||||
"uid":"0"
|
||||
}
|
||||
],
|
||||
"object":"permissions"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"time":1514912232,
|
||||
"id":"0",
|
||||
"changed_fields":[
|
||||
"manage_pages"
|
||||
],
|
||||
"uid":"0"
|
||||
}
|
||||
],
|
||||
"object":"permissions"
|
||||
}
|
||||
16
zerver/webhooks/facebook/fixtures/users_email.json
Normal file
16
zerver/webhooks/facebook/fixtures/users_email.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"time":1514911552,
|
||||
"changes":[
|
||||
{
|
||||
"field":"email",
|
||||
"value":"example_email@facebook.com"
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"uid":"0"
|
||||
}
|
||||
],
|
||||
"object":"user"
|
||||
}
|
||||
15
zerver/webhooks/facebook/fixtures/users_feed.json
Normal file
15
zerver/webhooks/facebook/fixtures/users_feed.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"entry":[
|
||||
{
|
||||
"time":1514911601,
|
||||
"changes":[
|
||||
{
|
||||
"field":"feed"
|
||||
}
|
||||
],
|
||||
"id":"0",
|
||||
"uid":"0"
|
||||
}
|
||||
],
|
||||
"object":"user"
|
||||
}
|
||||
Reference in New Issue
Block a user