{"action":"created","issue":{"url":"https://api.github.com/repos/zapier/zapier-platform/issues/41","repository_url":"https://api.github.com/repos/zapier/zapier-platform","labels_url":"https://api.github.com/repos/zapier/zapier-platform/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/zapier/zapier-platform/issues/41/comments","events_url":"https://api.github.com/repos/zapier/zapier-platform/issues/41/events","html_url":"https://github.com/zapier/zapier-platform/issues/41","id":473748123,"node_id":"MDU6SXNzdWU0NzM3NDgxMjM=","number":41,"title":"How to include event name in performSubscribe hook","user":{"login":"opsb","id":46232,"node_id":"MDQ6VXNlcjQ2MjMy","avatar_url":"https://avatars2.githubusercontent.com/u/46232?v=4","gravatar_id":"","url":"https://api.github.com/users/opsb","html_url":"https://github.com/opsb","followers_url":"https://api.github.com/users/opsb/followers","following_url":"https://api.github.com/users/opsb/following{/other_user}","gists_url":"https://api.github.com/users/opsb/gists{/gist_id}","starred_url":"https://api.github.com/users/opsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opsb/subscriptions","organizations_url":"https://api.github.com/users/opsb/orgs","repos_url":"https://api.github.com/users/opsb/repos","events_url":"https://api.github.com/users/opsb/events{/privacy}","received_events_url":"https://api.github.com/users/opsb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-28T14:09:43Z","updated_at":"2019-07-30T16:54:08Z","closed_at":"2019-07-30T16:54:08Z","author_association":"NONE","body":"My understanding is that when a subscription is created via rest hooks it should include a name for the particular event that the user is interested in e.g. `user_registered`. The server is then able to trigger rest hooks at the appropriate times. I haven't been able to find any documentation for the performSubscribe hook showing how to include this event name, is it available on the bundle somehow?"},"comment":{"url":"https://api.github.com/repos/zapier/zapier-platform/issues/comments/516503617","html_url":"https://github.com/zapier/zapier-platform/issues/41#issuecomment-516503617","issue_url":"https://api.github.com/repos/zapier/zapier-platform/issues/41","id":516503617,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNjUwMzYxNw==","user":{"login":"xavdid","id":1231935,"node_id":"MDQ6VXNlcjEyMzE5MzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1231935?v=4","gravatar_id":"","url":"https://api.github.com/users/xavdid","html_url":"https://github.com/xavdid","followers_url":"https://api.github.com/users/xavdid/followers","following_url":"https://api.github.com/users/xavdid/following{/other_user}","gists_url":"https://api.github.com/users/xavdid/gists{/gist_id}","starred_url":"https://api.github.com/users/xavdid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavdid/subscriptions","organizations_url":"https://api.github.com/users/xavdid/orgs","repos_url":"https://api.github.com/users/xavdid/repos","events_url":"https://api.github.com/users/xavdid/events{/privacy}","received_events_url":"https://api.github.com/users/xavdid/received_events","type":"User","site_admin":false},"created_at":"2019-07-30T16:54:08Z","updated_at":"2019-07-30T16:54:08Z","author_association":"MEMBER","body":"Hey there!\r\n\r\nYou can include arbitrary data in the subscription hook. There's an example here: https://github.com/zapier/zapier-platform/blob/e8d4fc588bdb2a15059a151057b607a8057b0a06/example-apps/rest-hooks/triggers/recipe.js#L6-L9\r\n\r\nYou can add any data you would find helpful on your end."}}
{"actor":{"display_login":"xavdid"}}