{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10","id":46558593,"html_url":"https://github.com/woothemes/wc-api-ruby/pull/10","diff_url":"https://github.com/woothemes/wc-api-ruby/pull/10.diff","patch_url":"https://github.com/woothemes/wc-api-ruby/pull/10.patch","issue_url":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/10","number":10,"state":"closed","locked":false,"title":"Support data params for GET and DELETE","user":{"login":"kbacha","id":2043529,"avatar_url":"https://avatars.githubusercontent.com/u/2043529?v=3","gravatar_id":"","url":"https://api.github.com/users/kbacha","html_url":"https://github.com/kbacha","followers_url":"https://api.github.com/users/kbacha/followers","following_url":"https://api.github.com/users/kbacha/following{/other_user}","gists_url":"https://api.github.com/users/kbacha/gists{/gist_id}","starred_url":"https://api.github.com/users/kbacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbacha/subscriptions","organizations_url":"https://api.github.com/users/kbacha/orgs","repos_url":"https://api.github.com/users/kbacha/repos","events_url":"https://api.github.com/users/kbacha/events{/privacy}","received_events_url":"https://api.github.com/users/kbacha/received_events","type":"User","site_admin":false},"body":"@claudiosmweb \r\n\r\nThis enables passing data into the get and delete routes (which would be needed for filters and forces) instead of using the query params as strings.\r\n\r\nThis:\r\n```ruby\r\nclient.delete('products/1', force: true)\r\n```\r\n\r\nrather than this:\r\n```ruby\r\nclient.delete('products/1?force=true)\r\n```\r\n\r\nFor filters it's even more obvious why this form is better:\r\n\r\n```ruby\r\nclient.get('products', filter: { sku: '123' })\r\n```","created_at":"2015-10-01T18:24:10Z","updated_at":"2015-10-07T16:53:28Z","closed_at":"2015-10-07T16:53:28Z","merged_at":"2015-10-07T16:53:28Z","merge_commit_sha":"ab0a92d5ee58918d60c2548b7493ecb2a0078910","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10/commits","review_comments_url":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10/comments","review_comment_url":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/10/comments","statuses_url":"https://api.github.com/repos/woothemes/wc-api-ruby/statuses/17fc2d17126dbbc93dd86049f82519165fee480c","head":{"label":"kbacha:master","ref":"master","sha":"17fc2d17126dbbc93dd86049f82519165fee480c","user":{"login":"kbacha","id":2043529,"avatar_url":"https://avatars.githubusercontent.com/u/2043529?v=3","gravatar_id":"","url":"https://api.github.com/users/kbacha","html_url":"https://github.com/kbacha","followers_url":"https://api.github.com/users/kbacha/followers","following_url":"https://api.github.com/users/kbacha/following{/other_user}","gists_url":"https://api.github.com/users/kbacha/gists{/gist_id}","starred_url":"https://api.github.com/users/kbacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbacha/subscriptions","organizations_url":"https://api.github.com/users/kbacha/orgs","repos_url":"https://api.github.com/users/kbacha/repos","events_url":"https://api.github.com/users/kbacha/events{/privacy}","received_events_url":"https://api.github.com/users/kbacha/received_events","type":"User","site_admin":false},"repo":{"id":43332369,"name":"wc-api-ruby","full_name":"kbacha/wc-api-ruby","owner":{"login":"kbacha","id":2043529,"avatar_url":"https://avatars.githubusercontent.com/u/2043529?v=3","gravatar_id":"","url":"https://api.github.com/users/kbacha","html_url":"https://github.com/kbacha","followers_url":"https://api.github.com/users/kbacha/followers","following_url":"https://api.github.com/users/kbacha/following{/other_user}","gists_url":"https://api.github.com/users/kbacha/gists{/gist_id}","starred_url":"https://api.github.com/users/kbacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbacha/subscriptions","organizations_url":"https://api.github.com/users/kbacha/orgs","repos_url":"https://api.github.com/users/kbacha/repos","events_url":"https://api.github.com/users/kbacha/events{/privacy}","received_events_url":"https://api.github.com/users/kbacha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbacha/wc-api-ruby","description":"A Ruby wrapper for the WooCommerce API.","fork":true,"url":"https://api.github.com/repos/kbacha/wc-api-ruby","forks_url":"https://api.github.com/repos/kbacha/wc-api-ruby/forks","keys_url":"https://api.github.com/repos/kbacha/wc-api-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbacha/wc-api-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbacha/wc-api-ruby/teams","hooks_url":"https://api.github.com/repos/kbacha/wc-api-ruby/hooks","issue_events_url":"https://api.github.com/repos/kbacha/wc-api-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/kbacha/wc-api-ruby/events","assignees_url":"https://api.github.com/repos/kbacha/wc-api-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/kbacha/wc-api-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/kbacha/wc-api-ruby/tags","blobs_url":"https://api.github.com/repos/kbacha/wc-api-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbacha/wc-api-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbacha/wc-api-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbacha/wc-api-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbacha/wc-api-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/kbacha/wc-api-ruby/languages","stargazers_url":"https://api.github.com/repos/kbacha/wc-api-ruby/stargazers","contributors_url":"https://api.github.com/repos/kbacha/wc-api-ruby/contributors","subscribers_url":"https://api.github.com/repos/kbacha/wc-api-ruby/subscribers","subscription_url":"https://api.github.com/repos/kbacha/wc-api-ruby/subscription","commits_url":"https://api.github.com/repos/kbacha/wc-api-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbacha/wc-api-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbacha/wc-api-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbacha/wc-api-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbacha/wc-api-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/kbacha/wc-api-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbacha/wc-api-ruby/merges","archive_url":"https://api.github.com/repos/kbacha/wc-api-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbacha/wc-api-ruby/downloads","issues_url":"https://api.github.com/repos/kbacha/wc-api-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/kbacha/wc-api-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/kbacha/wc-api-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/kbacha/wc-api-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbacha/wc-api-ruby/labels{/name}","releases_url":"https://api.github.com/repos/kbacha/wc-api-ruby/releases{/id}","created_at":"2015-09-28T23:16:25Z","updated_at":"2015-09-28T23:16:26Z","pushed_at":"2015-10-07T14:26:44Z","git_url":"git://github.com/kbacha/wc-api-ruby.git","ssh_url":"git@github.com:kbacha/wc-api-ruby.git","clone_url":"https://github.com/kbacha/wc-api-ruby.git","svn_url":"https://github.com/kbacha/wc-api-ruby","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"woothemes:master","ref":"master","sha":"bae5c9ea7247e04e0e80d5062569d10d3a2282bd","user":{"login":"woothemes","id":473596,"avatar_url":"https://avatars.githubusercontent.com/u/473596?v=3","gravatar_id":"","url":"https://api.github.com/users/woothemes","html_url":"https://github.com/woothemes","followers_url":"https://api.github.com/users/woothemes/followers","following_url":"https://api.github.com/users/woothemes/following{/other_user}","gists_url":"https://api.github.com/users/woothemes/gists{/gist_id}","starred_url":"https://api.github.com/users/woothemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woothemes/subscriptions","organizations_url":"https://api.github.com/users/woothemes/orgs","repos_url":"https://api.github.com/users/woothemes/repos","events_url":"https://api.github.com/users/woothemes/events{/privacy}","received_events_url":"https://api.github.com/users/woothemes/received_events","type":"Organization","site_admin":false},"repo":{"id":39001144,"name":"wc-api-ruby","full_name":"woothemes/wc-api-ruby","owner":{"login":"woothemes","id":473596,"avatar_url":"https://avatars.githubusercontent.com/u/473596?v=3","gravatar_id":"","url":"https://api.github.com/users/woothemes","html_url":"https://github.com/woothemes","followers_url":"https://api.github.com/users/woothemes/followers","following_url":"https://api.github.com/users/woothemes/following{/other_user}","gists_url":"https://api.github.com/users/woothemes/gists{/gist_id}","starred_url":"https://api.github.com/users/woothemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woothemes/subscriptions","organizations_url":"https://api.github.com/users/woothemes/orgs","repos_url":"https://api.github.com/users/woothemes/repos","events_url":"https://api.github.com/users/woothemes/events{/privacy}","received_events_url":"https://api.github.com/users/woothemes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woothemes/wc-api-ruby","description":"A Ruby wrapper for the WooCommerce API.","fork":false,"url":"https://api.github.com/repos/woothemes/wc-api-ruby","forks_url":"https://api.github.com/repos/woothemes/wc-api-ruby/forks","keys_url":"https://api.github.com/repos/woothemes/wc-api-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woothemes/wc-api-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woothemes/wc-api-ruby/teams","hooks_url":"https://api.github.com/repos/woothemes/wc-api-ruby/hooks","issue_events_url":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/woothemes/wc-api-ruby/events","assignees_url":"https://api.github.com/repos/woothemes/wc-api-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/woothemes/wc-api-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/woothemes/wc-api-ruby/tags","blobs_url":"https://api.github.com/repos/woothemes/wc-api-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woothemes/wc-api-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woothemes/wc-api-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/woothemes/wc-api-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woothemes/wc-api-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/woothemes/wc-api-ruby/languages","stargazers_url":"https://api.github.com/repos/woothemes/wc-api-ruby/stargazers","contributors_url":"https://api.github.com/repos/woothemes/wc-api-ruby/contributors","subscribers_url":"https://api.github.com/repos/woothemes/wc-api-ruby/subscribers","subscription_url":"https://api.github.com/repos/woothemes/wc-api-ruby/subscription","commits_url":"https://api.github.com/repos/woothemes/wc-api-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/woothemes/wc-api-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/woothemes/wc-api-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/woothemes/wc-api-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/woothemes/wc-api-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woothemes/wc-api-ruby/merges","archive_url":"https://api.github.com/repos/woothemes/wc-api-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woothemes/wc-api-ruby/downloads","issues_url":"https://api.github.com/repos/woothemes/wc-api-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/woothemes/wc-api-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/woothemes/wc-api-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woothemes/wc-api-ruby/labels{/name}","releases_url":"https://api.github.com/repos/woothemes/wc-api-ruby/releases{/id}","created_at":"2015-07-13T08:46:08Z","updated_at":"2015-08-07T08:12:19Z","pushed_at":"2015-10-07T16:53:28Z","git_url":"git://github.com/woothemes/wc-api-ruby.git","ssh_url":"git@github.com:woothemes/wc-api-ruby.git","clone_url":"https://github.com/woothemes/wc-api-ruby.git","svn_url":"https://github.com/woothemes/wc-api-ruby","homepage":null,"size":238,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10"},"html":{"href":"https://github.com/woothemes/wc-api-ruby/pull/10"},"issue":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/10"},"comments":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/woothemes/wc-api-ruby/statuses/17fc2d17126dbbc93dd86049f82519165fee480c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"claudiosmweb","id":1264099,"avatar_url":"https://avatars.githubusercontent.com/u/1264099?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiosmweb","html_url":"https://github.com/claudiosmweb","followers_url":"https://api.github.com/users/claudiosmweb/followers","following_url":"https://api.github.com/users/claudiosmweb/following{/other_user}","gists_url":"https://api.github.com/users/claudiosmweb/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiosmweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiosmweb/subscriptions","organizations_url":"https://api.github.com/users/claudiosmweb/orgs","repos_url":"https://api.github.com/users/claudiosmweb/repos","events_url":"https://api.github.com/users/claudiosmweb/events{/privacy}","received_events_url":"https://api.github.com/users/claudiosmweb/received_events","type":"User","site_admin":false},"comments":10,"review_comments":0,"commits":5,"additions":108,"deletions":49,"changed_files":3}}