{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8","id":74157872,"html_url":"https://github.com/claudiajs/claudia-bot-builder/pull/8","diff_url":"https://github.com/claudiajs/claudia-bot-builder/pull/8.diff","patch_url":"https://github.com/claudiajs/claudia-bot-builder/pull/8.patch","issue_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/8","number":8,"state":"open","locked":false,"title":"Feat/generate fb message","user":{"login":"stojanovic","id":613478,"avatar_url":"https://avatars.githubusercontent.com/u/613478?v=3","gravatar_id":"","url":"https://api.github.com/users/stojanovic","html_url":"https://github.com/stojanovic","followers_url":"https://api.github.com/users/stojanovic/followers","following_url":"https://api.github.com/users/stojanovic/following{/other_user}","gists_url":"https://api.github.com/users/stojanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/stojanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stojanovic/subscriptions","organizations_url":"https://api.github.com/users/stojanovic/orgs","repos_url":"https://api.github.com/users/stojanovic/repos","events_url":"https://api.github.com/users/stojanovic/events{/privacy}","received_events_url":"https://api.github.com/users/stojanovic/received_events","type":"User","site_admin":false},"body":"Adds generator for FB templates.\r\n\r\nOptions:\r\n```js\r\nnew fbTemplate.generic() // Generic template\r\nnew fbTemplate.buttons() // Buttons template\r\nnew fbTemplate.receipt() // Receipt template\r\nnew fbTemplate.image()   // Image attachment\r\n```\r\n\r\nUsage:\r\n\r\n```js\r\nconst fbTemplate = require('claudia-bot-builder').fbTemplate\r\n\r\nlet message = new fbTemplate.generic()\r\n  .addBubble('1', 'hello')\r\n    .addUrl('http://google.com')\r\n  .addBubble('2', 'hello')\r\n    .addImage('http://path.to/some/image.png')\r\n  .addBubble('3', 'hello')\r\n    .addButton('Button 1', 'postback value')\r\n    .addButton('Button 2', 'http://google.com')\r\n  .get();\r\n\r\nconsole.log(JSON.stringify(message));\r\n/*\r\nOutput:\r\n\r\n{  \r\n  \"attachment\":{  \r\n    \"type\":\"template\",\r\n    \"payload\":{  \r\n      \"template_type\":\"generic\",\r\n      \"elements\":[  \r\n        {  \r\n          \"title\":\"1\",\r\n          \"subtitle\":\"hello\",\r\n          \"item_url\":\"http://google.com\"\r\n        },\r\n        {  \r\n          \"title\":\"2\",\r\n          \"subtitle\":\"hello\",\r\n          \"image_url\":\"http://path.to/some/image.png\"\r\n        },\r\n        {  \r\n          \"title\":\"3\",\r\n          \"subtitle\":\"hello\",\r\n          \"buttons\":[  \r\n            {  \r\n              \"title\":\"Button 1\",\r\n              \"type\":\"postback\",\r\n              \"payload\":\"postback value\"\r\n            },\r\n            {  \r\n              \"title\":\"Button 2\",\r\n              \"type\":\"web_url\",\r\n              \"url\":\"http://google.com\"\r\n            }\r\n          ]\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n*/\r\n```","created_at":"2016-06-16T21:46:04Z","updated_at":"2016-06-16T21:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8580be973859748a62c601fb775c0271980606bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8/commits","review_comments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8/comments","review_comment_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/8/comments","statuses_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/statuses/b6e0d40c4f7c948dc614a95e4ffbdc2756a39c92","head":{"label":"claudiajs:feat/generate-fb-message","ref":"feat/generate-fb-message","sha":"b6e0d40c4f7c948dc614a95e4ffbdc2756a39c92","user":{"login":"claudiajs","id":17075165,"avatar_url":"https://avatars.githubusercontent.com/u/17075165?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiajs","html_url":"https://github.com/claudiajs","followers_url":"https://api.github.com/users/claudiajs/followers","following_url":"https://api.github.com/users/claudiajs/following{/other_user}","gists_url":"https://api.github.com/users/claudiajs/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiajs/subscriptions","organizations_url":"https://api.github.com/users/claudiajs/orgs","repos_url":"https://api.github.com/users/claudiajs/repos","events_url":"https://api.github.com/users/claudiajs/events{/privacy}","received_events_url":"https://api.github.com/users/claudiajs/received_events","type":"Organization","site_admin":false},"repo":{"id":60166854,"name":"claudia-bot-builder","full_name":"claudiajs/claudia-bot-builder","owner":{"login":"claudiajs","id":17075165,"avatar_url":"https://avatars.githubusercontent.com/u/17075165?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiajs","html_url":"https://github.com/claudiajs","followers_url":"https://api.github.com/users/claudiajs/followers","following_url":"https://api.github.com/users/claudiajs/following{/other_user}","gists_url":"https://api.github.com/users/claudiajs/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiajs/subscriptions","organizations_url":"https://api.github.com/users/claudiajs/orgs","repos_url":"https://api.github.com/users/claudiajs/repos","events_url":"https://api.github.com/users/claudiajs/events{/privacy}","received_events_url":"https://api.github.com/users/claudiajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claudiajs/claudia-bot-builder","description":"Create chat bots for FB, Slack, Skype and Telegram and deploy to AWS Lambda in minutes","fork":false,"url":"https://api.github.com/repos/claudiajs/claudia-bot-builder","forks_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/forks","keys_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/teams","hooks_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/hooks","issue_events_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/events{/number}","events_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/events","assignees_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/assignees{/user}","branches_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/branches{/branch}","tags_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/tags","blobs_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/languages","stargazers_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/stargazers","contributors_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/contributors","subscribers_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/subscribers","subscription_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/subscription","commits_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/contents/{+path}","compare_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/merges","archive_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/downloads","issues_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues{/number}","pulls_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/labels{/name}","releases_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/releases{/id}","deployments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/deployments","created_at":"2016-06-01T10:13:33Z","updated_at":"2016-06-16T21:32:43Z","pushed_at":"2016-06-16T21:46:04Z","git_url":"git://github.com/claudiajs/claudia-bot-builder.git","ssh_url":"git@github.com:claudiajs/claudia-bot-builder.git","clone_url":"https://github.com/claudiajs/claudia-bot-builder.git","svn_url":"https://github.com/claudiajs/claudia-bot-builder","homepage":"","size":121,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":206,"default_branch":"master"}},"base":{"label":"claudiajs:master","ref":"master","sha":"ef2cc1b57606593e3868869f6d4407925f4a5d4a","user":{"login":"claudiajs","id":17075165,"avatar_url":"https://avatars.githubusercontent.com/u/17075165?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiajs","html_url":"https://github.com/claudiajs","followers_url":"https://api.github.com/users/claudiajs/followers","following_url":"https://api.github.com/users/claudiajs/following{/other_user}","gists_url":"https://api.github.com/users/claudiajs/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiajs/subscriptions","organizations_url":"https://api.github.com/users/claudiajs/orgs","repos_url":"https://api.github.com/users/claudiajs/repos","events_url":"https://api.github.com/users/claudiajs/events{/privacy}","received_events_url":"https://api.github.com/users/claudiajs/received_events","type":"Organization","site_admin":false},"repo":{"id":60166854,"name":"claudia-bot-builder","full_name":"claudiajs/claudia-bot-builder","owner":{"login":"claudiajs","id":17075165,"avatar_url":"https://avatars.githubusercontent.com/u/17075165?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiajs","html_url":"https://github.com/claudiajs","followers_url":"https://api.github.com/users/claudiajs/followers","following_url":"https://api.github.com/users/claudiajs/following{/other_user}","gists_url":"https://api.github.com/users/claudiajs/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiajs/subscriptions","organizations_url":"https://api.github.com/users/claudiajs/orgs","repos_url":"https://api.github.com/users/claudiajs/repos","events_url":"https://api.github.com/users/claudiajs/events{/privacy}","received_events_url":"https://api.github.com/users/claudiajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claudiajs/claudia-bot-builder","description":"Create chat bots for FB, Slack, Skype and Telegram and deploy to AWS Lambda in minutes","fork":false,"url":"https://api.github.com/repos/claudiajs/claudia-bot-builder","forks_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/forks","keys_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/teams","hooks_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/hooks","issue_events_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/events{/number}","events_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/events","assignees_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/assignees{/user}","branches_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/branches{/branch}","tags_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/tags","blobs_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/languages","stargazers_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/stargazers","contributors_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/contributors","subscribers_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/subscribers","subscription_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/subscription","commits_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/contents/{+path}","compare_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/merges","archive_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/downloads","issues_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues{/number}","pulls_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/labels{/name}","releases_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/releases{/id}","deployments_url":"https://api.github.com/repos/claudiajs/claudia-bot-builder/deployments","created_at":"2016-06-01T10:13:33Z","updated_at":"2016-06-16T21:32:43Z","pushed_at":"2016-06-16T21:46:04Z","git_url":"git://github.com/claudiajs/claudia-bot-builder.git","ssh_url":"git@github.com:claudiajs/claudia-bot-builder.git","clone_url":"https://github.com/claudiajs/claudia-bot-builder.git","svn_url":"https://github.com/claudiajs/claudia-bot-builder","homepage":"","size":121,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8"},"html":{"href":"https://github.com/claudiajs/claudia-bot-builder/pull/8"},"issue":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/8"},"comments":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/claudiajs/claudia-bot-builder/statuses/b6e0d40c4f7c948dc614a95e4ffbdc2756a39c92"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":1032,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"stojanovic"}}