Last active
October 24, 2017 10:42
-
-
Save bitoiu/2f5ff8639156bb6969cf52e0c12f3965 to your computer and use it in GitHub Desktop.
Webhook Processing (API Gateway + Lambda + DynamoDB + GH Pages)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resource":"/webhook", | |
"path":"/webhook", | |
"httpMethod":"POST", | |
"headers": | |
{ | |
"X-GitHub-Delivery":"1230123", | |
"X-GitHub-Event":"member", | |
"User-Agent":"bitoiu" | |
} | |
,"queryStringParameters":null, | |
"pathParameters":null, | |
"stageVariables":null, | |
"requestContext": | |
{ | |
"path":"/webhook", | |
"accountId":"377117578606", | |
"resourceId":"tiusz0", | |
"stage":"test-invoke-stage", | |
"requestId":"test-invoke-request", | |
"identity": | |
{ | |
"cognitoIdentityPoolId":null, | |
"accountId":"377117578606", | |
"cognitoIdentityId":null, | |
"caller":"AROAIB56YRSVZXT76HZ7A:[email protected]", | |
"apiKey":"test-invoke-api-key", | |
"sourceIp":"test-invoke-source-ip", | |
"accessKey":"ASIAJK5CKG3PUD7YLZGA", | |
"cognitoAuthenticationType":null, | |
"cognitoAuthenticationProvider":null, | |
"userArn":"arn:aws:sts::377117578606:assumed-role/aws-admins/[email protected]", | |
"userAgent":"Apache-HttpClient/4.5.x (Java/1.8.0_131)", | |
"user":"AROAIB56YRSVZXT76HZ7A:[email protected]" | |
}, | |
"resourcePath":"/webhook", | |
"httpMethod":"POST","apiId":"u53malmvlk" | |
}, | |
"body": { | |
"action": "added", | |
"member": { | |
"login": "octocat", | |
"id": 583231, | |
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/octocat", | |
"html_url": "https://github.com/octocat", | |
"followers_url": "https://api.github.com/users/octocat/followers", | |
"following_url": "https://api.github.com/users/octocat/following{/other_user}", | |
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions", | |
"organizations_url": "https://api.github.com/users/octocat/orgs", | |
"repos_url": "https://api.github.com/users/octocat/repos", | |
"events_url": "https://api.github.com/users/octocat/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/octocat/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"repository": { | |
"id": 35129377, | |
"name": "public-repo", | |
"full_name": "baxterthehacker/public-repo", | |
"owner": { | |
"login": "baxterthehacker", | |
"id": 6752317, | |
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/baxterthehacker", | |
"html_url": "https://github.com/baxterthehacker", | |
"followers_url": "https://api.github.com/users/baxterthehacker/followers", | |
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", | |
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", | |
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs", | |
"repos_url": "https://api.github.com/users/baxterthehacker/repos", | |
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"private": false, | |
"html_url": "https://github.com/baxterthehacker/public-repo", | |
"description": "", | |
"fork": false, | |
"url": "https://api.github.com/repos/baxterthehacker/public-repo", | |
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks", | |
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}", | |
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}", | |
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams", | |
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks", | |
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}", | |
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events", | |
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}", | |
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}", | |
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags", | |
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}", | |
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}", | |
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}", | |
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}", | |
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}", | |
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages", | |
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers", | |
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors", | |
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers", | |
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription", | |
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}", | |
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}", | |
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}", | |
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}", | |
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}", | |
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}", | |
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges", | |
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}", | |
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads", | |
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}", | |
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}", | |
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}", | |
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}", | |
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}", | |
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}", | |
"created_at": "2015-05-05T23:40:12Z", | |
"updated_at": "2015-05-05T23:40:30Z", | |
"pushed_at": "2015-05-05T23:40:40Z", | |
"git_url": "git://github.com/baxterthehacker/public-repo.git", | |
"ssh_url": "[email protected]:baxterthehacker/public-repo.git", | |
"clone_url": "https://github.com/baxterthehacker/public-repo.git", | |
"svn_url": "https://github.com/baxterthehacker/public-repo", | |
"homepage": null, | |
"size": 0, | |
"stargazers_count": 0, | |
"watchers_count": 0, | |
"language": null, | |
"has_issues": true, | |
"has_downloads": true, | |
"has_wiki": true, | |
"has_pages": true, | |
"forks_count": 0, | |
"mirror_url": null, | |
"open_issues_count": 2, | |
"forks": 0, | |
"open_issues": 2, | |
"watchers": 0, | |
"default_branch": "master" | |
}, | |
"sender": { | |
"login": "baxterthehacker", | |
"id": 6752317, | |
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/baxterthehacker", | |
"html_url": "https://github.com/baxterthehacker", | |
"followers_url": "https://api.github.com/users/baxterthehacker/followers", | |
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", | |
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", | |
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs", | |
"repos_url": "https://api.github.com/users/baxterthehacker/repos", | |
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events", | |
"type": "User", | |
"site_admin": false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment