製品のリスト属性と価値オプションを取得する方法は?
url: http:// www。
& products_id =
<テーブルスタイル= "幅:100%;">
phpサンプル:
//サンプルリストの製品オプションと値
$ url = $ tabain_url。 &#39; /api_ds_products_ors.php?action = list_products_options_values&amp; products_id =&#39; $ _ get [&#39; products_id&#39;];
$ ch = curl_init($ url);
curl_setopt($ ch、curlopt_returntransfer、true);
curl_setopt($ ch、curlopt_ssl_verifypeer、false);
curl_setopt($ ch、curlopt_httpheader、array(
&#39; content-type:application/json&#39;、
「キャッシュコントロール:キャッシュなし」、
&#39;トークン:&#39; 。 base64_encode($ token)、
&#39;秘密:&#39; 。 base64_encode($ secret)、
&#39;電子メール:&#39; 。 base64_encode($ email)、
&#39;コンテンツレングス:&#39; 。 strlen($ data_string)))
);
$ result = curl_exec($ ch);
curl_close($ ch);
print_r($ result);
//サンプルリスト製品オプションと値EOF code> pre>
返品:
id
テキスト< /p>