{"action":"created","issue":{"url":"https://api.github.com/repos/fprimex/zdesk/issues/8","labels_url":"https://api.github.com/repos/fprimex/zdesk/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/fprimex/zdesk/issues/8/comments","events_url":"https://api.github.com/repos/fprimex/zdesk/issues/8/events","html_url":"https://github.com/fprimex/zdesk/issues/8","id":61226235,"number":8,"title":"Api v2: Search query and urlencode","user":{"login":"alexsilva","id":2024086,"avatar_url":"https://avatars.githubusercontent.com/u/2024086?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsilva","html_url":"https://github.com/alexsilva","followers_url":"https://api.github.com/users/alexsilva/followers","following_url":"https://api.github.com/users/alexsilva/following{/other_user}","gists_url":"https://api.github.com/users/alexsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsilva/subscriptions","organizations_url":"https://api.github.com/users/alexsilva/orgs","repos_url":"https://api.github.com/users/alexsilva/repos","events_url":"https://api.github.com/users/alexsilva/events{/privacy}","received_events_url":"https://api.github.com/users/alexsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-13T20:33:55Z","updated_at":"2015-03-14T16:46:05Z","closed_at":null,"body":"urlencode is causing problems when using the search query method.\r\n\r\nhttps://company.zendesk.com/api/v2/search.json?query=type%3Aticket%2Borganization_id%3A22293406&page=1\r\n\r\nThe query can not be coded:\r\ntype%3Aticket%2Borganization_id%3A22293406\r\n"},"comment":{"url":"https://api.github.com/repos/fprimex/zdesk/issues/comments/80571319","html_url":"https://github.com/fprimex/zdesk/issues/8#issuecomment-80571319","issue_url":"https://api.github.com/repos/fprimex/zdesk/issues/8","id":80571319,"user":{"login":"alexsilva","id":2024086,"avatar_url":"https://avatars.githubusercontent.com/u/2024086?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsilva","html_url":"https://github.com/alexsilva","followers_url":"https://api.github.com/users/alexsilva/followers","following_url":"https://api.github.com/users/alexsilva/following{/other_user}","gists_url":"https://api.github.com/users/alexsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsilva/subscriptions","organizations_url":"https://api.github.com/users/alexsilva/orgs","repos_url":"https://api.github.com/users/alexsilva/repos","events_url":"https://api.github.com/users/alexsilva/events{/privacy}","received_events_url":"https://api.github.com/users/alexsilva/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T16:46:05Z","updated_at":"2015-03-14T16:46:05Z","body":"Thanks was is this the bug.\nEm 13/03/2015 22:05, \"Brent Woodruff\" <notifications@github.com> escreveu:\n\n> Hello. Can you try passing in a space rather than a plus? The plus is\n> being encoded along with the rest of the query string so that it is\n> submitted literally, which is not what you want.\n>\n> >>> urlencode({'query':'type:ticket+organization_id:22293406'})\n> 'query=type%3Aticket%2Borganization_id%3A22293406'\n>\n> >>> urlencode({'query':'type:ticket organization_id:22293406'})\n> 'query=type%3Aticket+organization_id%3A22293406'\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/fprimex/zdesk/issues/8#issuecomment-79624008>.\n>\n"}}