{"action":"created","comment":{"url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/comments/212288551","pull_request_review_id":148885540,"id":212288551,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjI4ODU1MQ==","diff_hunk":"@@ -790,3 +790,67 @@ fetch_proposicao_camara <- function(prop_id) {\n     fuzzyjoin::regex_left_join(regex_apreciacao, by = c(temp = \"regex\")) %>%\n     dplyr::select(-c('temp', 'regex'))\n }\n+\n+#' @title Baixa a pauta de uma reunião\n+#' @description Retorna um dataframe contendo dados sobre a pauta, função auxiliar usanda na \n+#' fetch_agenda_camara()\n+#' @param id id do evento\n+#' @param hora_inicio hora que começou o evento\n+#' @param hora_fim hora que finalizou o evento\n+#' @return Dataframe\n+#' @examples\n+#' fetch_pauta_camara(53277, 2018-07-03T10:00, 2018-07-03T12:37)\n+#' @export\n+fetch_pauta_camara <- function(id, hora_inicio, hora_fim) {\n+  url <- paste0(\"https://dadosabertos.camara.leg.br/api/v2/eventos/\", id, \"/pauta\")\n+  json_proposicao <- jsonlite::fromJSON(url, flatten = T)\n+  \n+  json_proposicao$dados %>%\n+    tibble::as.tibble() %>%\n+    mutate(hora_inicio = hora_inicio, hora_fim = hora_fim)\n+}\n+\n+#' @title Baixa a agenda da câmara\n+#' @description Retorna um dataframe contendo toda a agenda das sessões/reuniões deliberativas da Câmara\n+#' @param inital_date data inicial no formato yyyy-mm-dd\n+#' @param end_date data final no formato yyyy-mm-dd\n+#' @return Dataframe\n+#' @examples\n+#' fetch_agenda_camara(2018-07-03, 2018-07-10)\n+#' @export\n+fetch_agenda_camara <- function(inital_date, end_date) {","path":"R/fetcher.R","position":32,"original_position":32,"commit_id":"4bd1e14cf094ce3f1782723b24e45dc6dbd57766","original_commit_id":"4bd1e14cf094ce3f1782723b24e45dc6dbd57766","user":{"login":"thayannevls","id":6867958,"node_id":"MDQ6VXNlcjY4Njc5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6867958?v=4","gravatar_id":"","url":"https://api.github.com/users/thayannevls","html_url":"https://github.com/thayannevls","followers_url":"https://api.github.com/users/thayannevls/followers","following_url":"https://api.github.com/users/thayannevls/following{/other_user}","gists_url":"https://api.github.com/users/thayannevls/gists{/gist_id}","starred_url":"https://api.github.com/users/thayannevls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thayannevls/subscriptions","organizations_url":"https://api.github.com/users/thayannevls/orgs","repos_url":"https://api.github.com/users/thayannevls/repos","events_url":"https://api.github.com/users/thayannevls/events{/privacy}","received_events_url":"https://api.github.com/users/thayannevls/received_events","type":"User","site_admin":false},"body":"tem q adicionar as funções no namespace pra funfar no pacote `devtools::document()`","created_at":"2018-08-23T12:28:03Z","updated_at":"2018-08-23T12:29:11Z","html_url":"https://github.com/analytics-ufcg/agora-digital/pull/164#discussion_r212288551","pull_request_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/comments/212288551"},"html":{"href":"https://github.com/analytics-ufcg/agora-digital/pull/164#discussion_r212288551"},"pull_request":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164","id":210159018,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMTU5MDE4","html_url":"https://github.com/analytics-ufcg/agora-digital/pull/164","diff_url":"https://github.com/analytics-ufcg/agora-digital/pull/164.diff","patch_url":"https://github.com/analytics-ufcg/agora-digital/pull/164.patch","issue_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/164","number":164,"state":"open","locked":false,"title":"Fetch agendas","user":{"login":"jairNeto","id":13747493,"node_id":"MDQ6VXNlcjEzNzQ3NDkz","avatar_url":"https://avatars1.githubusercontent.com/u/13747493?v=4","gravatar_id":"","url":"https://api.github.com/users/jairNeto","html_url":"https://github.com/jairNeto","followers_url":"https://api.github.com/users/jairNeto/followers","following_url":"https://api.github.com/users/jairNeto/following{/other_user}","gists_url":"https://api.github.com/users/jairNeto/gists{/gist_id}","starred_url":"https://api.github.com/users/jairNeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairNeto/subscriptions","organizations_url":"https://api.github.com/users/jairNeto/orgs","repos_url":"https://api.github.com/users/jairNeto/repos","events_url":"https://api.github.com/users/jairNeto/events{/privacy}","received_events_url":"https://api.github.com/users/jairNeto/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-22T14:44:35Z","updated_at":"2018-08-23T12:29:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a6145fbf6319f1ba2c6318106d4db9d43723813","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164/commits","review_comments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164/comments","review_comment_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/comments{/number}","comments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/164/comments","statuses_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/statuses/4bd1e14cf094ce3f1782723b24e45dc6dbd57766","head":{"label":"analytics-ufcg:fetch_agendas","ref":"fetch_agendas","sha":"4bd1e14cf094ce3f1782723b24e45dc6dbd57766","user":{"login":"analytics-ufcg","id":17051677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDUxNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/17051677?v=4","gravatar_id":"","url":"https://api.github.com/users/analytics-ufcg","html_url":"https://github.com/analytics-ufcg","followers_url":"https://api.github.com/users/analytics-ufcg/followers","following_url":"https://api.github.com/users/analytics-ufcg/following{/other_user}","gists_url":"https://api.github.com/users/analytics-ufcg/gists{/gist_id}","starred_url":"https://api.github.com/users/analytics-ufcg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytics-ufcg/subscriptions","organizations_url":"https://api.github.com/users/analytics-ufcg/orgs","repos_url":"https://api.github.com/users/analytics-ufcg/repos","events_url":"https://api.github.com/users/analytics-ufcg/events{/privacy}","received_events_url":"https://api.github.com/users/analytics-ufcg/received_events","type":"Organization","site_admin":false},"repo":{"id":134282317,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyODIzMTc=","name":"agora-digital","full_name":"analytics-ufcg/agora-digital","owner":{"login":"analytics-ufcg","id":17051677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDUxNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/17051677?v=4","gravatar_id":"","url":"https://api.github.com/users/analytics-ufcg","html_url":"https://github.com/analytics-ufcg","followers_url":"https://api.github.com/users/analytics-ufcg/followers","following_url":"https://api.github.com/users/analytics-ufcg/following{/other_user}","gists_url":"https://api.github.com/users/analytics-ufcg/gists{/gist_id}","starred_url":"https://api.github.com/users/analytics-ufcg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytics-ufcg/subscriptions","organizations_url":"https://api.github.com/users/analytics-ufcg/orgs","repos_url":"https://api.github.com/users/analytics-ufcg/repos","events_url":"https://api.github.com/users/analytics-ufcg/events{/privacy}","received_events_url":"https://api.github.com/users/analytics-ufcg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/analytics-ufcg/agora-digital","description":"Acesso, tradução e modelos usando dados do congresso nacional","fork":false,"url":"https://api.github.com/repos/analytics-ufcg/agora-digital","forks_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/forks","keys_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/teams","hooks_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/hooks","issue_events_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/events{/number}","events_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/events","assignees_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/assignees{/user}","branches_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/branches{/branch}","tags_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/tags","blobs_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/refs{/sha}","trees_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/statuses/{sha}","languages_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/languages","stargazers_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/stargazers","contributors_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/contributors","subscribers_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/subscribers","subscription_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/subscription","commits_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/commits{/sha}","git_commits_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/commits{/sha}","comments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/comments{/number}","issue_comment_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/comments{/number}","contents_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/contents/{+path}","compare_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/merges","archive_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/downloads","issues_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues{/number}","pulls_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls{/number}","milestones_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/milestones{/number}","notifications_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/labels{/name}","releases_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/releases{/id}","deployments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/deployments","created_at":"2018-05-21T14:43:51Z","updated_at":"2018-08-22T18:09:44Z","pushed_at":"2018-08-22T19:59:13Z","git_url":"git://github.com/analytics-ufcg/agora-digital.git","ssh_url":"git@github.com:analytics-ufcg/agora-digital.git","clone_url":"https://github.com/analytics-ufcg/agora-digital.git","svn_url":"https://github.com/analytics-ufcg/agora-digital","homepage":"","size":17832,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"analytics-ufcg:master","ref":"master","sha":"4c0e5007cb3390f46754c2f3dd2f361cdc87a8fc","user":{"login":"analytics-ufcg","id":17051677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDUxNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/17051677?v=4","gravatar_id":"","url":"https://api.github.com/users/analytics-ufcg","html_url":"https://github.com/analytics-ufcg","followers_url":"https://api.github.com/users/analytics-ufcg/followers","following_url":"https://api.github.com/users/analytics-ufcg/following{/other_user}","gists_url":"https://api.github.com/users/analytics-ufcg/gists{/gist_id}","starred_url":"https://api.github.com/users/analytics-ufcg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytics-ufcg/subscriptions","organizations_url":"https://api.github.com/users/analytics-ufcg/orgs","repos_url":"https://api.github.com/users/analytics-ufcg/repos","events_url":"https://api.github.com/users/analytics-ufcg/events{/privacy}","received_events_url":"https://api.github.com/users/analytics-ufcg/received_events","type":"Organization","site_admin":false},"repo":{"id":134282317,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyODIzMTc=","name":"agora-digital","full_name":"analytics-ufcg/agora-digital","owner":{"login":"analytics-ufcg","id":17051677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDUxNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/17051677?v=4","gravatar_id":"","url":"https://api.github.com/users/analytics-ufcg","html_url":"https://github.com/analytics-ufcg","followers_url":"https://api.github.com/users/analytics-ufcg/followers","following_url":"https://api.github.com/users/analytics-ufcg/following{/other_user}","gists_url":"https://api.github.com/users/analytics-ufcg/gists{/gist_id}","starred_url":"https://api.github.com/users/analytics-ufcg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytics-ufcg/subscriptions","organizations_url":"https://api.github.com/users/analytics-ufcg/orgs","repos_url":"https://api.github.com/users/analytics-ufcg/repos","events_url":"https://api.github.com/users/analytics-ufcg/events{/privacy}","received_events_url":"https://api.github.com/users/analytics-ufcg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/analytics-ufcg/agora-digital","description":"Acesso, tradução e modelos usando dados do congresso nacional","fork":false,"url":"https://api.github.com/repos/analytics-ufcg/agora-digital","forks_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/forks","keys_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/teams","hooks_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/hooks","issue_events_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/events{/number}","events_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/events","assignees_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/assignees{/user}","branches_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/branches{/branch}","tags_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/tags","blobs_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/refs{/sha}","trees_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/statuses/{sha}","languages_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/languages","stargazers_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/stargazers","contributors_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/contributors","subscribers_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/subscribers","subscription_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/subscription","commits_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/commits{/sha}","git_commits_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/git/commits{/sha}","comments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/comments{/number}","issue_comment_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/comments{/number}","contents_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/contents/{+path}","compare_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/merges","archive_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/downloads","issues_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues{/number}","pulls_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls{/number}","milestones_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/milestones{/number}","notifications_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/labels{/name}","releases_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/releases{/id}","deployments_url":"https://api.github.com/repos/analytics-ufcg/agora-digital/deployments","created_at":"2018-05-21T14:43:51Z","updated_at":"2018-08-22T18:09:44Z","pushed_at":"2018-08-22T19:59:13Z","git_url":"git://github.com/analytics-ufcg/agora-digital.git","ssh_url":"git@github.com:analytics-ufcg/agora-digital.git","clone_url":"https://github.com/analytics-ufcg/agora-digital.git","svn_url":"https://github.com/analytics-ufcg/agora-digital","homepage":"","size":17832,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164"},"html":{"href":"https://github.com/analytics-ufcg/agora-digital/pull/164"},"issue":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/164"},"comments":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/analytics-ufcg/agora-digital/statuses/4bd1e14cf094ce3f1782723b24e45dc6dbd57766"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thayannevls"}}