{"action":"created","comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/pulls/comments/76404216","id":76404216,"diff_hunk":"@@ -0,0 +1,221 @@\n+<?php\n+/**\n+ * REST API WC Shipping Methods controller\n+ *\n+ * Handles requests to the /shipping_methods endpoint.\n+ *\n+ * @author   WooThemes\n+ * @category API\n+ * @package  WooCommerce/API\n+ * @since    2.7.0\n+ */\n+\n+if ( ! defined( 'ABSPATH' ) ) {\n+\texit;\n+}\n+\n+/**\n+ * @package WooCommerce/API\n+ * @extends WC_REST_Controller\n+ */\n+class WC_REST_Shipping_Methods_Controller extends WC_REST_Controller {\n+\n+\t/**\n+\t * Endpoint namespace.\n+\t *\n+\t * @var string\n+\t */\n+\tprotected $namespace = 'wc/v1';\n+\n+\t/**\n+\t * Route base.\n+\t *\n+\t * @var string\n+\t */\n+\tprotected $rest_base = 'shipping_methods';\n+\n+\t/**\n+\t * Register the route for /shipping_methods and /shipping_methods/<method>\n+\t */\n+\tpublic function register_routes() {\n+        register_rest_route( $this->namespace, '/' . $this->rest_base, array(\n+\t\t\tarray(\n+\t\t\t\t'methods'             => WP_REST_Server::READABLE,\n+\t\t\t\t'callback'            => array( $this, 'get_items' ),\n+                'permission_callback' => array( $this, 'get_items_permissions_check' ),\n+\t\t\t\t'args'                => $this->get_collection_params(),\n+\t\t\t),\n+\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n+\t\t) );\n+        register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>[\\w-]+)', array(\n+\t\t\tarray(\n+\t\t\t\t'methods'             => WP_REST_Server::READABLE,\n+\t\t\t\t'callback'            => array( $this, 'get_item' ),\n+\t\t\t\t'permission_callback' => array( $this, 'get_item_permissions_check' ),\n+\t\t\t\t'args'                => array(\n+\t\t\t\t\t'context' => $this->get_context_param( array( 'default' => 'view' ) ),\n+\t\t\t\t),\n+\t\t\t),\n+\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n+\t\t) );\n+\t}\n+\n+    /**\n+\t * Check whether a given request has permission to view system status.\n+\t *\n+\t * @param  WP_REST_Request $request Full details about the request.\n+\t * @return WP_Error|boolean\n+\t */\n+\tpublic function get_items_permissions_check( $request ) {\n+        if ( ! wc_rest_check_manager_permissions( 'shipping_methods', 'read' ) ) {\n+        \treturn new WP_Error( 'woocommerce_rest_cannot_view', __( 'Sorry, you cannot list resources.', 'woocommerce' ), array( 'status' => rest_authorization_required_code() ) );\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+    /**\n+\t * Check if a given request has access to read a shipping method.\n+\t *\n+\t * @param  WP_REST_Request $request Full details about the request.\n+\t * @return WP_Error|boolean\n+\t */\n+\tpublic function get_item_permissions_check( $request ) {\n+\t\tif ( ! wc_rest_check_manager_permissions( 'shipping_methods', 'read' ) ) {\n+\t\t\treturn new WP_Error( 'woocommerce_rest_cannot_view', __( 'Sorry, you cannot view this resource.', 'woocommerce' ), array( 'status' => rest_authorization_required_code() ) );\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+    /**\n+\t * Get shipping methods.\n+\t *\n+\t * @param WP_REST_Request $request Full details about the request.\n+\t * @return WP_Error|WP_REST_Response\n+\t */\n+\tpublic function get_items( $request ) {\n+        $wc_shipping = WC_Shipping::instance();\n+        $response    = array();\n+        foreach ( $wc_shipping->get_shipping_methods() as $id => $shipping_method ) {\n+            $method = $this->prepare_item_for_response( $shipping_method, $request );\n+\t\t\t$method = $this->prepare_response_for_collection( $method );\n+\t\t\t$response[] = $method;\n+        }\n+        return rest_ensure_response( $response );\n+\t}\n+\n+    /**\n+     * Get a single Shipping Method.\n+     *\n+     * @param WP_REST_Request $request\n+     * @return WP_REST_Response|WP_Error\n+     */\n+    public function get_item( $request ) {\n+        $wc_shipping = WC_Shipping::instance();\n+        $methods     = $wc_shipping->get_shipping_methods();\n+        if ( empty ( $methods[ $request['id'] ] ) ) {\n+            return new WP_Error( 'woocommerce_rest_shipping_method_invalid', __( \"Resource doesn't exist.\", 'woocommerce' ), array( 'status' => 404 ) );","path":"includes/api/class-wc-rest-shipping-methods-controller.php","position":116,"original_position":116,"commit_id":"147c18c197f5713f3df0ff20c91216c46b01f86c","original_commit_id":"147c18c197f5713f3df0ff20c91216c46b01f86c","user":{"login":"justinshreve","id":689165,"avatar_url":"https://avatars.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"body":"This one should be OK - Double quotes should be used when there is a single quote in the string (instead of escaping). This also matches the error some other endpoints return.","created_at":"2016-08-26T11:34:07Z","updated_at":"2016-08-26T11:34:07Z","html_url":"https://github.com/woothemes/woocommerce/pull/11781#discussion_r76404216","pull_request_url":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781","_links":{"self":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/comments/76404216"},"html":{"href":"https://github.com/woothemes/woocommerce/pull/11781#discussion_r76404216"},"pull_request":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781"}}},"pull_request":{"url":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781","id":82827702,"html_url":"https://github.com/woothemes/woocommerce/pull/11781","diff_url":"https://github.com/woothemes/woocommerce/pull/11781.diff","patch_url":"https://github.com/woothemes/woocommerce/pull/11781.patch","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11781","number":11781,"state":"open","locked":false,"title":"Shipping Methods API","user":{"login":"justinshreve","id":689165,"avatar_url":"https://avatars.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"body":"This PR adds two new endpoints: `/wc/v1/shipping_methods` and `/wc/v1/shipping_methods/$method`. These endpoints return the method id, title/label, and description, which can be used for the add method dialog/flow.\r\n\r\nThis PR also adds some more endpoints to the shipping ZONE methods controller. This is where you can create a new instance of a shipping method under a zone. Or delete it. Or update its settings. Basically enabling us to build an interface for attaching methods to zones, managing them, etc. These were missing from the earlier zone controller.\r\n\r\nTests included.\r\nCloses #11607.","created_at":"2016-08-26T03:40:09Z","updated_at":"2016-08-26T11:34:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75355b52cfbddd806cc3ac128dae8e4f56d148dd","assignee":{"login":"justinshreve","id":689165,"avatar_url":"https://avatars.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"assignees":[{"login":"justinshreve","id":689165,"avatar_url":"https://avatars.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/woothemes/woocommerce/milestones/53","html_url":"https://github.com/woothemes/woocommerce/milestones/2.7","labels_url":"https://api.github.com/repos/woothemes/woocommerce/milestones/53/labels","id":1537224,"number":53,"title":"2.7","description":"2.7 will focus on API + CRUD improvements.","creator":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":94,"state":"open","created_at":"2016-01-22T23:35:12Z","updated_at":"2016-08-26T03:40:09Z","due_on":"2016-10-03T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781/commits","review_comments_url":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781/comments","review_comment_url":"https://api.github.com/repos/woothemes/woocommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11781/comments","statuses_url":"https://api.github.com/repos/woothemes/woocommerce/statuses/147c18c197f5713f3df0ff20c91216c46b01f86c","head":{"label":"woothemes:shipping-method-api","ref":"shipping-method-api","sha":"147c18c197f5713f3df0ff20c91216c46b01f86c","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":2179920,"name":"woocommerce","full_name":"woothemes/woocommerce","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/woocommerce","description":"An open source eCommerce plugin for WordPress created by WooThemes.","fork":false,"url":"https://api.github.com/repos/woothemes/woocommerce","forks_url":"https://api.github.com/repos/woothemes/woocommerce/forks","keys_url":"https://api.github.com/repos/woothemes/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woothemes/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woothemes/woocommerce/teams","hooks_url":"https://api.github.com/repos/woothemes/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woothemes/woocommerce/events","assignees_url":"https://api.github.com/repos/woothemes/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woothemes/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woothemes/woocommerce/tags","blobs_url":"https://api.github.com/repos/woothemes/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woothemes/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woothemes/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woothemes/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woothemes/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woothemes/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woothemes/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woothemes/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woothemes/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woothemes/woocommerce/subscription","commits_url":"https://api.github.com/repos/woothemes/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woothemes/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woothemes/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woothemes/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woothemes/woocommerce/merges","archive_url":"https://api.github.com/repos/woothemes/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woothemes/woocommerce/downloads","issues_url":"https://api.github.com/repos/woothemes/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woothemes/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woothemes/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woothemes/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woothemes/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woothemes/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woothemes/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2016-08-25T16:17:11Z","pushed_at":"2016-08-26T10:27:07Z","git_url":"git://github.com/woothemes/woocommerce.git","ssh_url":"git@github.com:woothemes/woocommerce.git","clone_url":"https://github.com/woothemes/woocommerce.git","svn_url":"https://github.com/woothemes/woocommerce","homepage":"http://www.woothemes.com/woocommerce/","size":132715,"stargazers_count":2872,"watchers_count":2872,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2378,"mirror_url":null,"open_issues_count":42,"forks":2378,"open_issues":42,"watchers":2872,"default_branch":"master"}},"base":{"label":"woothemes:master","ref":"master","sha":"6a2f87ca341332cff3196211f668957e225c6f52","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":2179920,"name":"woocommerce","full_name":"woothemes/woocommerce","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/woocommerce","description":"An open source eCommerce plugin for WordPress created by WooThemes.","fork":false,"url":"https://api.github.com/repos/woothemes/woocommerce","forks_url":"https://api.github.com/repos/woothemes/woocommerce/forks","keys_url":"https://api.github.com/repos/woothemes/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woothemes/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woothemes/woocommerce/teams","hooks_url":"https://api.github.com/repos/woothemes/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woothemes/woocommerce/events","assignees_url":"https://api.github.com/repos/woothemes/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woothemes/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woothemes/woocommerce/tags","blobs_url":"https://api.github.com/repos/woothemes/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woothemes/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woothemes/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woothemes/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woothemes/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woothemes/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woothemes/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woothemes/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woothemes/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woothemes/woocommerce/subscription","commits_url":"https://api.github.com/repos/woothemes/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woothemes/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woothemes/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woothemes/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woothemes/woocommerce/merges","archive_url":"https://api.github.com/repos/woothemes/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woothemes/woocommerce/downloads","issues_url":"https://api.github.com/repos/woothemes/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woothemes/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woothemes/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woothemes/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woothemes/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woothemes/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woothemes/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2016-08-25T16:17:11Z","pushed_at":"2016-08-26T10:27:07Z","git_url":"git://github.com/woothemes/woocommerce.git","ssh_url":"git@github.com:woothemes/woocommerce.git","clone_url":"https://github.com/woothemes/woocommerce.git","svn_url":"https://github.com/woothemes/woocommerce","homepage":"http://www.woothemes.com/woocommerce/","size":132715,"stargazers_count":2872,"watchers_count":2872,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2378,"mirror_url":null,"open_issues_count":42,"forks":2378,"open_issues":42,"watchers":2872,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781"},"html":{"href":"https://github.com/woothemes/woocommerce/pull/11781"},"issue":{"href":"https://api.github.com/repos/woothemes/woocommerce/issues/11781"},"comments":{"href":"https://api.github.com/repos/woothemes/woocommerce/issues/11781/comments"},"review_comments":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781/comments"},"review_comment":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woothemes/woocommerce/pulls/11781/commits"},"statuses":{"href":"https://api.github.com/repos/woothemes/woocommerce/statuses/147c18c197f5713f3df0ff20c91216c46b01f86c"}}}}
{"actor":{"display_login":"justinshreve"}}