【问题标题】:Bigcommerce API Get Store Resource w/PHPBigcommerce API 使用 PHP 获取商店资源
【发布时间】:2013-07-12 06:58:48
【问题描述】:

我正在尝试使用 PHP 访问 Bigcommerce API 的商店资源(名称、域等)。

我可以获取产品、类别、时间和其他资源,但我不知道如何使用 PHP 获取这些资源。

我尝试过使用 Bigcommerce::getStore() 和几种变体,但都没有成功。

【问题讨论】:

  • 我被告知可以使用以下内容:$var = Bigcommerce::getResource('/store', 'address'); 但我无法获取“名称”或“域”变量。
  • 我最终使用 cURL 来获取 store json 对象和 json_decode php 函数来获取所需的项目。

标签: bigcommerce


【解决方案1】:

从外观上看,它还没有在 PHP SDK 中实现。 使用这个分支https://github.com/bigcommerce/bigcommerce-api-php/pull/62

代码是

$store = Bigcommerce::getStore();
print_r($store);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-10-10
    • 2015-07-07
    • 2013-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-05
    相关资源
    最近更新 更多