{"id":11599,"date":"2021-08-01T00:57:30","date_gmt":"2021-07-31T16:57:30","guid":{"rendered":"https:\/\/www.gogoshark.com\/blog\/ecommerce\/shopify\/topic-71917128\/"},"modified":"2021-08-01T00:57:30","modified_gmt":"2021-07-31T16:57:30","slug":"topic-71917128","status":"publish","type":"post","link":"https:\/\/www.gogoshark.com\/blog\/ecommerce\/shopify\/topic-71917128\/","title":{"rendered":"shopify \u63a5\u53e3\u958b\u767c"},"content":{"rendered":"<article class=\"Post-Main Post-NormalMain\" tabindex=\"-1\">\n<header class=\"Post-Header\">\n<h1 id=\"shopify-%e6%8e%a5%e5%8f%a3%e9%96%8b%e7%99%bc\" class=\"Post-Title\">shopify \u63a5\u53e3\u958b\u767c<\/h1>\n<div class=\"Post-Author\">\n<div class=\"AuthorInfo\" itemprop=\"author\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/Person\">\n<div class=\"AuthorInfo\"><meta itemprop=\"name\" content=\"\u738b\u660e\u661f\"><meta itemprop=\"image\" content=\"https:\/\/pic1.zhimg.com\/v2-8990dee1724517a3aa66651d89430ae3_l.jpg?source=172ae18b\"><meta itemprop=\"url\" content=\"https:\/\/www.zhihu.com\/people\/wang-ming-xing-21\"><meta itemprop=\"zhihu:followerCount\"><\/div>\n<\/div>\n<\/div>\n<\/header>\n<div class=\"Post-RichTextContainer\">\n<div class=\"RichText ztext Post-RichText\" usegifprops=\"[object Object]\">\n<p>shopify\u7c21\u4ecb<\/p>\n<p>Shopify\u662f\u7531\u6258\u6bd4\u4e9e\u65af\u00b7\u76e7\u514b\u5275\u8fa6\u7684\u52a0\u62ff\u5927\u96fb\u5b50\u5546\u52d9\u8edf\u4ef6\u958b\u767c\u5546\uff0c\u7e3d\u90e8\u4f4d\u65bc\u52a0\u62ff\u5927\u9996\u90fd\u6e25\u592a\u83ef\uff0c\u5176\u63d0\u4f9b\u7684\u670d\u52d9\u8edf\u4ef6Shopify\u662f\u4e00\u500bSaaS\u9818\u57df\u7684\u8cfc\u7269\u8eca\u7cfb\u7d71\uff0c\u9069\u5408\u8de8\u5883\u96fb\u5546\u5efa\u7acb\u7368\u7acb\u7ad9\uff0c\u7528\u6236\u652f\u4ed8\u4e00\u5b9a\u8cbb\u7528\u5373\u53ef\u5728\u5176\u4e0a\u5229\u7528\u5404\u7a2e\u4e3b\u984c\/\u6a21\u677f\u5efa\u7acb\u81ea\u5df1\u7684\u7db2\u4e0a\u5546\u5e97\u3002<\/p>\n<p class=\"ztext-empty-paragraph\"><\/p>\n<p>\u6587\u6a94\u5730\u5740<\/p>\n<p>\u6388\u6b0a<\/p>\n<p>OAuth<\/p>\n<p>\u4f7f\u7528\u63a5\u53e3<\/p>\n<p>REST Admin API reference<\/p>\n<p class=\"ztext-empty-paragraph\"><\/p>\n<p>\/\/\u7bc4\u4f8b\u8a9e\u8a00<\/p>\n<p>PHP<\/p>\n<div class=\"highlight\">\n<pre><code class=\"language-php\"><div>$shop<\/div><div>=<\/div><div>'xxx'<\/div><div>;<\/div><div>\/\/\u5e97\u92ea\u540d\uff0c\u6307\u7684\u662f\u5f8c\u53f0\u767b\u9678\u5730\u5740\u6b04\u5167xxx.myshopify.com \u9019\u500bxxx<\/div><div>$api_key<\/div><div>=<\/div><div>\"xxx\"<\/div><div>;<\/div><div>\/\/app key \u5728\u958b\u767c\u8005\u5e73\u53f0\u4e2d\u5275\u5efaapp\u5c31\u6703\u751f\u6210<\/div><div>\/\/\u9700\u8981\u7372\u53d6\u7684\u6b0a\u9650<\/div><div>$scopes<\/div><div>=<\/div><div>\"read_locations,read_content,write_content,read_themes,write_themes,read_products,write_products,read_product_listings,read_collection_listings,read_customers,write_customers,read_orders,write_orders,read_draft_orders,write_draft_orders,read_script_tags,write_script_tags,read_fulfillments,write_fulfillments,read_shipping,write_shipping,read_analytics,read_checkouts,write_checkouts,read_reports,write_reports,read_price_rules,write_price_rules,read_marketing_events,write_marketing_events,read_resource_feedbacks,write_resource_feedbacks,read_locations,read_inventory,write_inventory\"<\/div><div>;<\/div><div>\/\/\u8fd4\u56de\u5730\u5740\u9019\u500b\u53ef\u4ee5\u4efb\u610f\u586b\u5beb<\/div><div>$redirect_uri<\/div><div>=<\/div><div>\"\"<\/div><div>;<\/div><div>\/\/\u69cb\u5efa\u8acb\u6c42\u5730\u5740<\/div><div>$install_url<\/div><div>=<\/div><div>\"https:\/\/\"<\/div><div>.<\/div><div>$shop<\/div><div>.<\/div><div>\".myshopify.com\/admin\/oauth\/authorize?client_id=\"<\/div><div>.<\/div><div>$api_key<\/div><div>.<\/div><div>\"&amp;scope=\"<\/div><div>.<\/div><div>$scopes<\/div><div>.<\/div><div>\"&amp;redirect_uri=\"<\/div><div>.<\/div><div>urlencode<\/div><div>(<\/div><div>$redirect_uri<\/div><div>);<\/div><div>\/\/\u8acb\u6c42\u5730\u5740\u751f\u6210\u5f8c\u53ef\u76f4\u63a5\u4f7f\u7528GET \u65b9\u5f0f\u767c\u9001<\/div><div>\/\/\u9032\u5165shopify\u6388\u6b0a\u754c\u9762\uff0c\u6b64\u6642\u8f38\u5165\u7528\u6236\u540d\u5bc6\u78bc\uff0c\u5f8c\u9ede\u64ca\u6388\u6b0a<\/div><div>\/\/\u8fd4\u56de\u5730\u5740\u4e0a\u6703\u6709code=xxxx<\/div><div>\/\/\u63a5\u4e0b\u4f86\u7372\u53d6token\u503c<\/div><div>\/\/\u69cb\u5efa\u8acb\u6c42\u8a0a\u606f<\/div><div>$request_headers<\/div><div>=<\/div><div>array<\/div><div>(<\/div><div>\"Content-type\"<\/div><div>=&gt;<\/div><div>\"application\/json\"<\/div><div>,<\/div><div>\/\/ \u544a\u8a34Shopify\u6211\u5011\u671f\u5f85JSON\u683c\u5f0f\u7684\u56de\u590d<\/div><div>\"client_id\"<\/div><div>=&gt;<\/div><div>\"daeaac41584625af84a5707f708336f6\"<\/div><div>,<\/div><div>\/\/ \u5275\u5efaapp\u6642\u7522\u751f<\/div><div>\"client_secret\"<\/div><div>=&gt;<\/div><div>\"1f73927bbefec664c142fd22e118de59\"<\/div><div>,<\/div><div>\/\/ \u5275\u5efaapp\u6642\u7522\u751f<\/div><div>\"code\"<\/div><div>=&gt;<\/div><div>$code<\/div><div>\/\/ \u4e0a\u9762\u8fd4\u56de\u7684code\u503c<\/div><div>);<\/div><div>\/\/\u767c\u9001\u8acb\u6c42\uff0c\u7372\u5f97\u8fd4\u56de\u503c<\/div><div>$shopify_response<\/div><div>=<\/div><div>$this<\/div><div>-&gt;<\/div><div>shopify_call<\/div><div>(<\/div><div>NULL<\/div><div>,<\/div><div>$shop<\/div><div>,<\/div><div>\"\/admin\/oauth\/access_token\"<\/div><div>,<\/div><div>$request_headers<\/div><div>,<\/div><div>'POST'<\/div><div>,<\/div><div>$request_headers<\/div><div>);<\/div><div>\/\/\u89e3\u6790json\u5b57\u7b26\u4e32<\/div><div>$shopify_response<\/div><div>=<\/div><div>json_decode<\/div><div>(<\/div><div>$shopify_response<\/div><div>[<\/div><div>'response'<\/div><div>],<\/div><div>TRUE<\/div><div>);<\/div><div>\/\/\u7bc4\u4f8b<\/div><div>\/\/\u8a02\u55ae\u63a5\u53e3<\/div><div>$create_time_from_date<\/div><div>=<\/div><div>date<\/div><div>(<\/div><div>'Ym-d'<\/div><div>,<\/div><div>$create_time_from<\/div><div>)<\/div><div>.<\/div><div>'T'<\/div><div>.<\/div><div>date<\/div><div>(<\/div><div>'H:i:s'<\/div><div>,<\/div><div>$create_time_from<\/div><div>);<\/div><div>$opt<\/div><div>=<\/div><div>array<\/div><div>(<\/div><div>\"limit\"<\/div><div>=&gt;<\/div><div>200<\/div><div>,<\/div><div>\"page\"<\/div><div>=&gt;<\/div><div>$page<\/div><div>,<\/div><div>\"financial_status\"<\/div><div>=&gt;<\/div><div>'paid'<\/div><div>,<\/div><div>\"updated_at_min\"<\/div><div>=&gt;<\/div><div>$create_time_from_date<\/div><div>,<\/div><div>);<\/div><div>$orders<\/div><div>=<\/div><div>$this<\/div><div>-&gt;<\/div><div>shopify_call<\/div><div>(<\/div><div>$token<\/div><div>,<\/div><div>$shop<\/div><div>,<\/div><div>\"\/admin\/orders.json\"<\/div><div>,<\/div><div>$opt<\/div><div>,<\/div><div>'GET'<\/div><div>);<\/div><div>\/\/\u7522\u54c1\u5275\u5efa\u63a5\u53e3<\/div><div>$opt<\/div><div>=<\/div><div>array<\/div><div>();<\/div><div>$insert<\/div><div>=<\/div><div>array<\/div><div>();<\/div><div>$insert<\/div><div>[<\/div><div>'title'<\/div><div>]<\/div><div>=<\/div><div>''<\/div><div>;<\/div><div>$insert<\/div><div>[<\/div><div>'body_html'<\/div><div>]<\/div><div>=<\/div><div>''<\/div><div>;<\/div><div>$insert<\/div><div>[<\/div><div>'vendor'<\/div><div>]<\/div><div>=<\/div><div>''<\/div><div>;<\/div><div>$insert<\/div><div>[<\/div><div>'product_type'<\/div><div>]<\/div><div>=<\/div><div>''<\/div><div>;<\/div><div>$insert<\/div><div>[<\/div><div>'tags'<\/div><div>]<\/div><div>=<\/div><div>''<\/div><div>;<\/div><div>\/\/\u9084\u6709\u53ef\u4ee5\u6dfb\u52a0\u5f88\u591a\u53c3\u6578<\/div><div>$opt<\/div><div>[<\/div><div>'product'<\/div><div>]<\/div><div>=<\/div><div>$insert<\/div><div>;<\/div><div>$product<\/div><div>=<\/div><div>$this<\/div><div>-&gt;<\/div><div>shopify_call<\/div><div>(<\/div><div>$token<\/div><div>,<\/div><div>$shop<\/div><div>,<\/div><div>\"\/admin\/api\/2019-07\/products.json\"<\/div><div>,<\/div><div>$opt<\/div><div>,<\/div><div>'POST'<\/div><div>,<\/div><div>array<\/div><div>(<\/div><div>0<\/div><div>=&gt;<\/div><div>'Content-Type: application\/json'<\/div><div>));<\/div><div>\/\/\u4f7f\u7528\u7684\u57fa\u790e\u51fd\u6578<\/div><div>\/\/$token \u4e0a\u65b9\u7372\u53d6\u7684token\u503c<\/div><div>\/\/$shop \u540c\u4e0a\u65b9\u76f8\u540c<\/div><div>\/\/$api_endpoint \u63a5\u53e3\u8def\u5f91<\/div><div>\/\/$query \u63a5\u53e3\u53c3\u6578<\/div><div>\/\/$method \u8a2a\u554f\u65b9\u5f0f<\/div><div>\/\/$request_headers \u982d\u90e8\u8a0a\u606f<\/div><div>function<\/div><div>shopify_call<\/div><div>(<\/div><div>$token<\/div><div>,<\/div><div>$shop<\/div><div>,<\/div><div>$api_endpoint<\/div><div>,<\/div><div>$query<\/div><div>=<\/div><div>array<\/div><div>(),<\/div><div>$method<\/div><div>=<\/div><div>'GET'<\/div><div>,<\/div><div>$request_headers<\/div><div>=<\/div><div>array<\/div><div>())<\/div><div>{<\/div><div>\/\/ Build URL<\/div><div>$url<\/div><div>=<\/div><div>\"https:\/\/\"<\/div><div>.<\/div><div>$shop<\/div><div>.<\/div><div>\".myshopify.com\"<\/div><div>.<\/div><div>$api_endpoint<\/div><div>;<\/div><div>if<\/div><div>(<\/div><div>!<\/div><div>is_null<\/div><div>(<\/div><div>$query<\/div><div>)<\/div><div>&amp;&amp;<\/div><div>in_array<\/div><div>(<\/div><div>$method<\/div><div>,<\/div><div>array<\/div><div>(<\/div><div>'GET'<\/div><div>,<\/div><div>'DELETE'<\/div><div>)))<\/div><div>$url<\/div><div>=<\/div><div>$url<\/div><div>.<\/div><div>\"?\"<\/div><div>.<\/div><div>http_build_query<\/div><div>(<\/div><div>$query<\/div><div>);<\/div><div>\/\/ Configure cURL<\/div><div>$curl<\/div><div>=<\/div><div>curl_init<\/div><div>(<\/div><div>$url<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_HEADER<\/div><div>,<\/div><div>TRUE<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_RETURNTRANSFER<\/div><div>,<\/div><div>TRUE<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_FOLLOWLOCATION<\/div><div>,<\/div><div>TRUE<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_MAXREDIRS<\/div><div>,<\/div><div>3<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_SSL_VERIFYPEER<\/div><div>,<\/div><div>FALSE<\/div><div>);<\/div><div>\/\/ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 3);<\/div><div>\/\/ curl_setopt($curl, CURLOPT_SSLVERSION, 3);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_USERAGENT<\/div><div>,<\/div><div>'My New Shopify App v.1'<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_CONNECTTIMEOUT<\/div><div>,<\/div><div>30<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_TIMEOUT<\/div><div>,<\/div><div>30<\/div><div>);<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_CUSTOMREQUEST<\/div><div>,<\/div><div>$method<\/div><div>);<\/div><div>\/\/ Setup headers<\/div><div>$request_headers<\/div><div>[]<\/div><div>=<\/div><div>\"\"<\/div><div>;<\/div><div>if<\/div><div>(<\/div><div>!<\/div><div>is_null<\/div><div>(<\/div><div>$token<\/div><div>))<\/div><div>$request_headers<\/div><div>[]<\/div><div>=<\/div><div>\"X-Shopify-Access-Token: \"<\/div><div>.<\/div><div>$token<\/div><div>;<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_HTTPHEADER<\/div><div>,<\/div><div>$request_headers<\/div><div>);<\/div><div>if<\/div><div>(<\/div><div>$method<\/div><div>!=<\/div><div>'GET'<\/div><div>&amp;&amp;<\/div><div>in_array<\/div><div>(<\/div><div>$method<\/div><div>,<\/div><div>array<\/div><div>(<\/div><div>'POST'<\/div><div>,<\/div><div>'PUT'<\/div><div>)))<\/div><div>{<\/div><div>if<\/div><div>(<\/div><div>is_array<\/div><div>(<\/div><div>$query<\/div><div>))<\/div><div>{<\/div><div>$fquery<\/div><div>=<\/div><div>http_build_query<\/div><div>(<\/div><div>$query<\/div><div>);<\/div><div>if<\/div><div>(<\/div><div>$request_headers<\/div><div>[<\/div><div>0<\/div><div>]<\/div><div>==<\/div><div>'Content-Type: application\/json'<\/div><div>)<\/div><div>$fquery<\/div><div>=<\/div><div>json_encode<\/div><div>(<\/div><div>$query<\/div><div>);<\/div><div>}<\/div><div>curl_setopt<\/div><div>(<\/div><div>$curl<\/div><div>,<\/div><div>CURLOPT_POSTFIELDS<\/div><div>,<\/div><div>$fquery<\/div><div>);<\/div><div>}<\/div><div>\/\/ Send request to Shopify and capture any errors<\/div><div>$response<\/div><div>=<\/div><div>curl_exec<\/div><div>(<\/div><div>$curl<\/div><div>);<\/div><div>$response<\/div><div>=<\/div><div>str_replace<\/div><div>(<\/div><div>\"HTTP\/1.1 100 Continue<\/div><div>rr<\/div><div>\"<\/div><div>,<\/div><div>''<\/div><div>,<\/div><div>$response<\/div><div>);<\/div><div>$response<\/div><div>=<\/div><div>str_replace<\/div><div>(<\/div><div>\"HTTP\/1.1 100 Continue<\/div><div>rnrn<\/div><div>\"<\/div><div>,<\/div><div>''<\/div><div>,<\/div><div>$response<\/div><div>);<\/div><div>$response<\/div><div>=<\/div><div>str_replace<\/div><div>(<\/div><div>\"HTTP\/1.1 100 Continue<\/div><div>nn<\/div><div>\"<\/div><div>,<\/div><div>''<\/div><div>,<\/div><div>$response<\/div><div>);<\/div><div>$error_number<\/div><div>=<\/div><div>curl_errno<\/div><div>(<\/div><div>$curl<\/div><div>);<\/div><div>$error_message<\/div><div>=<\/div><div>curl_error<\/div><div>(<\/div><div>$curl<\/div><div>);<\/div><div>\/\/ Close cURL to be nice<\/div><div>curl_close<\/div><div>(<\/div><div>$curl<\/div><div>);<\/div><div>\/\/ Return an error is cURL has a problem<\/div><div>if<\/div><div>(<\/div><div>$error_number<\/div><div>)<\/div><div>{<\/div><div>return<\/div><div>$error_message<\/div><div>;<\/div><div>}<\/div><div>else<\/div><div>{<\/div><div>\/\/ No error, return Shopify's response by parsing out the body and the headers<\/div><div>$response<\/div><div>=<\/div><div>preg_split<\/div><div>(<\/div><div>\"\/<\/div><div>rnrn<\/div><div>|<\/div><div>nn<\/div><div>|<\/div><div>rr<\/div><div>\/\"<\/div><div>,<\/div><div>$response<\/div><div>,<\/div><div>2<\/div><div>);<\/div><div>\/\/ Convert headers into an array<\/div><div>$headers<\/div><div>=<\/div><div>array<\/div><div>();<\/div><div>$header_data<\/div><div>=<\/div><div>explode<\/div><div>(<\/div><div>\"<\/div><div>n<\/div><div>\"<\/div><div>,<\/div><div>$response<\/div><div>[<\/div><div>0<\/div><div>]);<\/div><div>$headers<\/div><div>[<\/div><div>'status'<\/div><div>]<\/div><div>=<\/div><div>$header_data<\/div><div>[<\/div><div>0<\/div><div>];<\/div><div>\/\/ Does not contain a key, have to explicitly set<\/div><div>array_shift<\/div><div>(<\/div><div>$header_data<\/div><div>);<\/div><div>\/\/ Remove status, we've already set it above<\/div><div>foreach<\/div><div>(<\/div><div>$header_data<\/div><div>as<\/div><div>$part<\/div><div>)<\/div><div>{<\/div><div>$h<\/div><div>=<\/div><div>explode<\/div><div>(<\/div><div>\":\"<\/div><div>,<\/div><div>$part<\/div><div>);<\/div><div>$headers<\/div><div>[<\/div><div>trim<\/div><div>(<\/div><div>$h<\/div><div>[<\/div><div>0<\/div><div>])]<\/div><div>=<\/div><div>trim<\/div><div>(<\/div><div>$h<\/div><div>[<\/div><div>1<\/div><div>]);<\/div><div>}<\/div><div>\/\/ Return headers and Shopify's response<\/div><div>return<\/div><div>array<\/div><div>(<\/div><div>'headers'<\/div><div>=&gt;<\/div><div>$headers<\/div><div>,<\/div><div>'response'<\/div><div>=&gt;<\/div><div>$response<\/div><div>[<\/div><div>1<\/div><div>]);<\/div><div>}<\/div><div>}<\/div><\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"shopify\u7c21\u4ecbShopify\u662f\u7531\u6258\u6bd4\u4e9e\u65af\u00b7\u76e7\u514b\u5275\u8fa6\u7684\u52a0\u62ff\u5927\u96fb\u5b50\u5546\u52d9\u8edf\u4ef6\u958b\u767c\u5546\uff0c\u7e3d\u90e8\u4f4d\u65bc\u52a0\u62ff\u5927\u9996\u90fd\u6e25\u592a\u83ef\uff0c\u5176\u63d0\u4f9b\u7684\u670d\u52d9\u8edf\u4ef6Shopify\u662f\u4e00\u500bSaaS\u9818\u57df\u7684\u8cfc\u7269\u8eca\u7cfb\u7d71\uff0c\u9069\u5408\u8de8\u5883\u96fb\u5546\u5efa\u7acb\u7368\u7acb\u7ad9\uff0c\u7528\u6236\u652f\u4ed8\u4e00\u5b9a\u8cbb\u7528\u5373\u53ef\u5728\u5176\u4e0a\u5229\u2026\n","protected":false},"author":1,"featured_media":4308,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[334],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/posts\/11599"}],"collection":[{"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/comments?post=11599"}],"version-history":[{"count":0,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/posts\/11599\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/media\/4212"}],"wp:attachment":[{"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/media?parent=11599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/categories?post=11599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gogoshark.com\/blog\/wp-json\/wp\/v2\/tags?post=11599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}