{"action":"created","issue":{"url":"https://api.github.com/repos/pagarme/pagarme-js/issues/136","repository_url":"https://api.github.com/repos/pagarme/pagarme-js","labels_url":"https://api.github.com/repos/pagarme/pagarme-js/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/pagarme/pagarme-js/issues/136/comments","events_url":"https://api.github.com/repos/pagarme/pagarme-js/issues/136/events","html_url":"https://github.com/pagarme/pagarme-js/issues/136","id":360553798,"node_id":"MDU6SXNzdWUzNjA1NTM3OTg=","number":136,"title":"Filtro no javascript","user":{"login":"estevaosa","id":12243415,"node_id":"MDQ6VXNlcjEyMjQzNDE1","avatar_url":"https://avatars2.githubusercontent.com/u/12243415?v=4","gravatar_id":"","url":"https://api.github.com/users/estevaosa","html_url":"https://github.com/estevaosa","followers_url":"https://api.github.com/users/estevaosa/followers","following_url":"https://api.github.com/users/estevaosa/following{/other_user}","gists_url":"https://api.github.com/users/estevaosa/gists{/gist_id}","starred_url":"https://api.github.com/users/estevaosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estevaosa/subscriptions","organizations_url":"https://api.github.com/users/estevaosa/orgs","repos_url":"https://api.github.com/users/estevaosa/repos","events_url":"https://api.github.com/users/estevaosa/events{/privacy}","received_events_url":"https://api.github.com/users/estevaosa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-15T16:18:44Z","updated_at":"2018-09-18T02:03:53Z","closed_at":null,"author_association":"NONE","body":"Olá pessoal, tudo bem?\r\n\r\nEstou tentando fazer alguns filtros, porem, sem sucesso. Gostaria de fazer filtro entre datas, veja abaixo:\r\n\r\n.then(client => client.transactions.find({\r\n\t\t\t  customer:{id:\"+id+\"},\r\n\t\t\t  count:1000000,\r\n\t\t\t  date_created:\">=\"+data_inicial_mili+\"\",\r\n\t\t\t // date_created:\"=<=\"+data_final_mili+\"\"\r\n\t\t\t\r\n\t\t  }))\r\n\r\nNão consigo colocar duas datas, como fazer isso usando o js?\r\n\r\nOutro item: Gostaria de trazer todas as transações, para isso coloquei o count bastante alto. No php eu colocava count=0 e retornava todas as transações, por aqui parece ser diferente. \r\n\r\nSobre o count eu também consigo buscar por intervalos, exemplo:\r\nTransações de 1 à 10, depois uma nova consulta com transações de 11 à 20 e assim por diante.\r\n\r\nObrigado\r\n"},"comment":{"url":"https://api.github.com/repos/pagarme/pagarme-js/issues/comments/422228769","html_url":"https://github.com/pagarme/pagarme-js/issues/136#issuecomment-422228769","issue_url":"https://api.github.com/repos/pagarme/pagarme-js/issues/136","id":422228769,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjIyODc2OQ==","user":{"login":"otaviopace","id":15306309,"node_id":"MDQ6VXNlcjE1MzA2MzA5","avatar_url":"https://avatars1.githubusercontent.com/u/15306309?v=4","gravatar_id":"","url":"https://api.github.com/users/otaviopace","html_url":"https://github.com/otaviopace","followers_url":"https://api.github.com/users/otaviopace/followers","following_url":"https://api.github.com/users/otaviopace/following{/other_user}","gists_url":"https://api.github.com/users/otaviopace/gists{/gist_id}","starred_url":"https://api.github.com/users/otaviopace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otaviopace/subscriptions","organizations_url":"https://api.github.com/users/otaviopace/orgs","repos_url":"https://api.github.com/users/otaviopace/repos","events_url":"https://api.github.com/users/otaviopace/events{/privacy}","received_events_url":"https://api.github.com/users/otaviopace/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T02:03:53Z","updated_at":"2018-09-18T02:03:53Z","author_association":"CONTRIBUTOR","body":"Olá @estevaosa ! Consegue mostrar o exemplo que utiliza em PHP? Estou tentando ver aqui qual é a melhor forma de se buscar essas transações em um alcance de data :slightly_smiling_face: "}}
{"actor":{"display_login":"otaviopace"}}