{"action":"created","comment":{"url":"https://api.github.com/repos/fczuardi/calamars/pulls/comments/78759052","id":78759052,"diff_hunk":"@@ -56,6 +56,66 @@ const sendTextMessage = (message, pageAccessToken) => {\n };\n \n \n+// ## senderActions(status, userId, pageAccessToken)\n+// Set typing indicators or send read receipts to your Facebook Messenger app/bot.\n+//\n+// ### Parameters\n+// - **status** - _string_ - 'mark_seen' || 'typing_on' || 'typing_off'\n+// - **userId** - _string_ - The user fbid to send the status\n+// **pageAccessToken** - _string_ - The [token][pageAccessToken] for the page\n+// [senderActions]: https://developers.facebook.com/docs/messenger-platform/send-api-reference/sender-actions\n+// [pageAccessToken]: https://developers.facebook.com/docs/messenger-platform/send-api-reference/sender-actions\n+const senderActions = (status, userId, pageAccessToken) => {\n+    const requestOptions = {\n+        uri: `${apiURL}me/messages`,\n+        qs: {\n+            access_token: pageAccessToken\n+        },\n+        method: 'POST',\n+        body: {\n+            recipient: {\n+                id: userId\n+            },\n+            sender_action: status\n+        },\n+        json: true\n+    };\n+    return request(requestOptions);\n+};\n+\n+\n+// ## quickRepliesText(text, attachment, pageAccessToken)\n+// Send a quick replies message with your Facebook Messenger app/bot.\n+//\n+// ### Parameters\n+//   - **attachment** - _Object_ - Array of objects including the quick replies options\n+//   - **userId** - _string_ - recipient's messenger ID\n+//   - **text** - _string_ - message's text to be sent.\n+// **pageAccessToken** - _string_ - The [token][pageAccessToken] for the page\n+// [quickReplies]: https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replies\n+// [pageAccessToken]: https://developers.facebook.com/docs/messenger-platform/implementation#page_access_token\n+const quickRepliesText = (text, attachment, userId, pageAccessToken) => {","path":"src/lib/facebookGraphHelpers.js","position":42,"original_position":42,"commit_id":"abafd668dc320de6dac6c33122a8842e8893c9e0","original_commit_id":"abafd668dc320de6dac6c33122a8842e8893c9e0","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['quickRepliesText' is defined but never used.](https://www.codacy.com/app/fabricio/calamars/file/3912587898/issues/source?bid=3249250&fileBranchId=3699659#l97)","created_at":"2016-09-14T14:26:24Z","updated_at":"2016-09-14T14:26:24Z","html_url":"https://github.com/fczuardi/calamars/pull/13#discussion_r78759052","pull_request_url":"https://api.github.com/repos/fczuardi/calamars/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/comments/78759052"},"html":{"href":"https://github.com/fczuardi/calamars/pull/13#discussion_r78759052"},"pull_request":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/fczuardi/calamars/pulls/13","id":84962242,"html_url":"https://github.com/fczuardi/calamars/pull/13","diff_url":"https://github.com/fczuardi/calamars/pull/13.diff","patch_url":"https://github.com/fczuardi/calamars/pull/13.patch","issue_url":"https://api.github.com/repos/fczuardi/calamars/issues/13","number":13,"state":"open","locked":false,"title":"Sender Actions commit","user":{"login":"GabrielSoga","id":19688935,"avatar_url":"https://avatars.githubusercontent.com/u/19688935?v=3","gravatar_id":"","url":"https://api.github.com/users/GabrielSoga","html_url":"https://github.com/GabrielSoga","followers_url":"https://api.github.com/users/GabrielSoga/followers","following_url":"https://api.github.com/users/GabrielSoga/following{/other_user}","gists_url":"https://api.github.com/users/GabrielSoga/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrielSoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrielSoga/subscriptions","organizations_url":"https://api.github.com/users/GabrielSoga/orgs","repos_url":"https://api.github.com/users/GabrielSoga/repos","events_url":"https://api.github.com/users/GabrielSoga/events{/privacy}","received_events_url":"https://api.github.com/users/GabrielSoga/received_events","type":"User","site_admin":false},"body":"tested on CoralChat (working without warnings/errors)\r\nno tests included in this commit though","created_at":"2016-09-12T23:26:43Z","updated_at":"2016-09-14T14:26:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1363f76ae2bc8689027c2f09fb8919c8c17823f0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fczuardi/calamars/pulls/13/commits","review_comments_url":"https://api.github.com/repos/fczuardi/calamars/pulls/13/comments","review_comment_url":"https://api.github.com/repos/fczuardi/calamars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fczuardi/calamars/issues/13/comments","statuses_url":"https://api.github.com/repos/fczuardi/calamars/statuses/abafd668dc320de6dac6c33122a8842e8893c9e0","head":{"label":"GabrielSoga:master","ref":"master","sha":"abafd668dc320de6dac6c33122a8842e8893c9e0","user":{"login":"GabrielSoga","id":19688935,"avatar_url":"https://avatars.githubusercontent.com/u/19688935?v=3","gravatar_id":"","url":"https://api.github.com/users/GabrielSoga","html_url":"https://github.com/GabrielSoga","followers_url":"https://api.github.com/users/GabrielSoga/followers","following_url":"https://api.github.com/users/GabrielSoga/following{/other_user}","gists_url":"https://api.github.com/users/GabrielSoga/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrielSoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrielSoga/subscriptions","organizations_url":"https://api.github.com/users/GabrielSoga/orgs","repos_url":"https://api.github.com/users/GabrielSoga/repos","events_url":"https://api.github.com/users/GabrielSoga/events{/privacy}","received_events_url":"https://api.github.com/users/GabrielSoga/received_events","type":"User","site_admin":false},"repo":{"id":64228579,"name":"calamars","full_name":"GabrielSoga/calamars","owner":{"login":"GabrielSoga","id":19688935,"avatar_url":"https://avatars.githubusercontent.com/u/19688935?v=3","gravatar_id":"","url":"https://api.github.com/users/GabrielSoga","html_url":"https://github.com/GabrielSoga","followers_url":"https://api.github.com/users/GabrielSoga/followers","following_url":"https://api.github.com/users/GabrielSoga/following{/other_user}","gists_url":"https://api.github.com/users/GabrielSoga/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrielSoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrielSoga/subscriptions","organizations_url":"https://api.github.com/users/GabrielSoga/orgs","repos_url":"https://api.github.com/users/GabrielSoga/repos","events_url":"https://api.github.com/users/GabrielSoga/events{/privacy}","received_events_url":"https://api.github.com/users/GabrielSoga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GabrielSoga/calamars","description":"An alpha quality, under heavy development, proto-frramework for building chat applications.","fork":true,"url":"https://api.github.com/repos/GabrielSoga/calamars","forks_url":"https://api.github.com/repos/GabrielSoga/calamars/forks","keys_url":"https://api.github.com/repos/GabrielSoga/calamars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GabrielSoga/calamars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GabrielSoga/calamars/teams","hooks_url":"https://api.github.com/repos/GabrielSoga/calamars/hooks","issue_events_url":"https://api.github.com/repos/GabrielSoga/calamars/issues/events{/number}","events_url":"https://api.github.com/repos/GabrielSoga/calamars/events","assignees_url":"https://api.github.com/repos/GabrielSoga/calamars/assignees{/user}","branches_url":"https://api.github.com/repos/GabrielSoga/calamars/branches{/branch}","tags_url":"https://api.github.com/repos/GabrielSoga/calamars/tags","blobs_url":"https://api.github.com/repos/GabrielSoga/calamars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GabrielSoga/calamars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GabrielSoga/calamars/git/refs{/sha}","trees_url":"https://api.github.com/repos/GabrielSoga/calamars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GabrielSoga/calamars/statuses/{sha}","languages_url":"https://api.github.com/repos/GabrielSoga/calamars/languages","stargazers_url":"https://api.github.com/repos/GabrielSoga/calamars/stargazers","contributors_url":"https://api.github.com/repos/GabrielSoga/calamars/contributors","subscribers_url":"https://api.github.com/repos/GabrielSoga/calamars/subscribers","subscription_url":"https://api.github.com/repos/GabrielSoga/calamars/subscription","commits_url":"https://api.github.com/repos/GabrielSoga/calamars/commits{/sha}","git_commits_url":"https://api.github.com/repos/GabrielSoga/calamars/git/commits{/sha}","comments_url":"https://api.github.com/repos/GabrielSoga/calamars/comments{/number}","issue_comment_url":"https://api.github.com/repos/GabrielSoga/calamars/issues/comments{/number}","contents_url":"https://api.github.com/repos/GabrielSoga/calamars/contents/{+path}","compare_url":"https://api.github.com/repos/GabrielSoga/calamars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GabrielSoga/calamars/merges","archive_url":"https://api.github.com/repos/GabrielSoga/calamars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GabrielSoga/calamars/downloads","issues_url":"https://api.github.com/repos/GabrielSoga/calamars/issues{/number}","pulls_url":"https://api.github.com/repos/GabrielSoga/calamars/pulls{/number}","milestones_url":"https://api.github.com/repos/GabrielSoga/calamars/milestones{/number}","notifications_url":"https://api.github.com/repos/GabrielSoga/calamars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GabrielSoga/calamars/labels{/name}","releases_url":"https://api.github.com/repos/GabrielSoga/calamars/releases{/id}","deployments_url":"https://api.github.com/repos/GabrielSoga/calamars/deployments","created_at":"2016-07-26T14:36:21Z","updated_at":"2016-07-26T14:36:22Z","pushed_at":"2016-09-14T14:24:44Z","git_url":"git://github.com/GabrielSoga/calamars.git","ssh_url":"git@github.com:GabrielSoga/calamars.git","clone_url":"https://github.com/GabrielSoga/calamars.git","svn_url":"https://github.com/GabrielSoga/calamars","homepage":"","size":667,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fczuardi:master","ref":"master","sha":"61d2e21caae92305017db423374afcd4f4c3e3cd","user":{"login":"fczuardi","id":7760,"avatar_url":"https://avatars.githubusercontent.com/u/7760?v=3","gravatar_id":"","url":"https://api.github.com/users/fczuardi","html_url":"https://github.com/fczuardi","followers_url":"https://api.github.com/users/fczuardi/followers","following_url":"https://api.github.com/users/fczuardi/following{/other_user}","gists_url":"https://api.github.com/users/fczuardi/gists{/gist_id}","starred_url":"https://api.github.com/users/fczuardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fczuardi/subscriptions","organizations_url":"https://api.github.com/users/fczuardi/orgs","repos_url":"https://api.github.com/users/fczuardi/repos","events_url":"https://api.github.com/users/fczuardi/events{/privacy}","received_events_url":"https://api.github.com/users/fczuardi/received_events","type":"User","site_admin":false},"repo":{"id":56872431,"name":"calamars","full_name":"fczuardi/calamars","owner":{"login":"fczuardi","id":7760,"avatar_url":"https://avatars.githubusercontent.com/u/7760?v=3","gravatar_id":"","url":"https://api.github.com/users/fczuardi","html_url":"https://github.com/fczuardi","followers_url":"https://api.github.com/users/fczuardi/followers","following_url":"https://api.github.com/users/fczuardi/following{/other_user}","gists_url":"https://api.github.com/users/fczuardi/gists{/gist_id}","starred_url":"https://api.github.com/users/fczuardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fczuardi/subscriptions","organizations_url":"https://api.github.com/users/fczuardi/orgs","repos_url":"https://api.github.com/users/fczuardi/repos","events_url":"https://api.github.com/users/fczuardi/events{/privacy}","received_events_url":"https://api.github.com/users/fczuardi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fczuardi/calamars","description":"An alpha quality, under heavy development, proto-frramework for building chat applications.","fork":false,"url":"https://api.github.com/repos/fczuardi/calamars","forks_url":"https://api.github.com/repos/fczuardi/calamars/forks","keys_url":"https://api.github.com/repos/fczuardi/calamars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fczuardi/calamars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fczuardi/calamars/teams","hooks_url":"https://api.github.com/repos/fczuardi/calamars/hooks","issue_events_url":"https://api.github.com/repos/fczuardi/calamars/issues/events{/number}","events_url":"https://api.github.com/repos/fczuardi/calamars/events","assignees_url":"https://api.github.com/repos/fczuardi/calamars/assignees{/user}","branches_url":"https://api.github.com/repos/fczuardi/calamars/branches{/branch}","tags_url":"https://api.github.com/repos/fczuardi/calamars/tags","blobs_url":"https://api.github.com/repos/fczuardi/calamars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fczuardi/calamars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fczuardi/calamars/git/refs{/sha}","trees_url":"https://api.github.com/repos/fczuardi/calamars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fczuardi/calamars/statuses/{sha}","languages_url":"https://api.github.com/repos/fczuardi/calamars/languages","stargazers_url":"https://api.github.com/repos/fczuardi/calamars/stargazers","contributors_url":"https://api.github.com/repos/fczuardi/calamars/contributors","subscribers_url":"https://api.github.com/repos/fczuardi/calamars/subscribers","subscription_url":"https://api.github.com/repos/fczuardi/calamars/subscription","commits_url":"https://api.github.com/repos/fczuardi/calamars/commits{/sha}","git_commits_url":"https://api.github.com/repos/fczuardi/calamars/git/commits{/sha}","comments_url":"https://api.github.com/repos/fczuardi/calamars/comments{/number}","issue_comment_url":"https://api.github.com/repos/fczuardi/calamars/issues/comments{/number}","contents_url":"https://api.github.com/repos/fczuardi/calamars/contents/{+path}","compare_url":"https://api.github.com/repos/fczuardi/calamars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fczuardi/calamars/merges","archive_url":"https://api.github.com/repos/fczuardi/calamars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fczuardi/calamars/downloads","issues_url":"https://api.github.com/repos/fczuardi/calamars/issues{/number}","pulls_url":"https://api.github.com/repos/fczuardi/calamars/pulls{/number}","milestones_url":"https://api.github.com/repos/fczuardi/calamars/milestones{/number}","notifications_url":"https://api.github.com/repos/fczuardi/calamars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fczuardi/calamars/labels{/name}","releases_url":"https://api.github.com/repos/fczuardi/calamars/releases{/id}","deployments_url":"https://api.github.com/repos/fczuardi/calamars/deployments","created_at":"2016-04-22T17:11:53Z","updated_at":"2016-09-02T14:06:33Z","pushed_at":"2016-09-14T14:24:45Z","git_url":"git://github.com/fczuardi/calamars.git","ssh_url":"git@github.com:fczuardi/calamars.git","clone_url":"https://github.com/fczuardi/calamars.git","svn_url":"https://github.com/fczuardi/calamars","homepage":"https://github.com/calamar-io/calamars","size":691,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/13"},"html":{"href":"https://github.com/fczuardi/calamars/pull/13"},"issue":{"href":"https://api.github.com/repos/fczuardi/calamars/issues/13"},"comments":{"href":"https://api.github.com/repos/fczuardi/calamars/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fczuardi/calamars/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/fczuardi/calamars/statuses/abafd668dc320de6dac6c33122a8842e8893c9e0"}}}}
{"actor":{"display_login":"codacy-bot"}}