且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用的Bigcommerce API集成PHP

更新时间:2023-02-07 15:23:34

显然,我不知道大商贸不需要我举办任何服务器code就在自己身边或什么的,
我发现,这曾经code是我写的只是在我身边跑,所以我可以用我的商店进行互动。
我不知道为什么我真的无法在任何地方轻松找到这些信息,它不应该是我们看到的第一件事情,当我们达成bigcommerce.com ??

Apparently i had no idea Big-commerce doesn't need me to host any server code on their side or whatever, i found out that which ever code i write is simply run on my side so i can interact with my store. i wonder why i couldn't really find this information anywhere easily, shouldn't it be the first thing we see when we reach the developers page on bigcommerce.com??

无论如何,我找到了我一直在寻找,我理解它是如何工作的吧。

Anyway, i found what i was looking for and i understand how it works now.

要开始,至于在哪里你的PHP脚本走,那些将有PHP安装或从本地计算机的任何服务器托管的外部您的Bigcommerce商店。该API的Bigcommerce基本上给你一个方法来访问和使用程序,您的商店的数据库更改。你会用已绑定到特定存储相关数据,如您的产品或订单API资源端点(URL)的交互。您可以GET,PUT,POST和DELETE对这些URL的请求,以拉,修改,创建或删除分别存储相关的数据。
 PHP文件在这里 https://github.com/bigcommerce/bigcommerce-api-php
而这些应该是在你的机器与PHP服务器
上手有样品codeS,也有。

To begin, as far as where do your PHP scripts go, those will be hosted external to your Bigcommerce store from any server that has PHP installed or from your local computer. The Bigcommerce API basically gives you a way to access and make changes to your store's database using a program. You will interact with API resources endpoints (URLs) which have been tied to specific store related data, like your products or orders. You can make GET, PUT, POST, and DELETE requests on these URLs in order to pull, modify, create, or delete store related data, respectively. the php files are here https://github.com/bigcommerce/bigcommerce-api-php , and these should be in your machine with a PHP server to get started there are sample codes there also.

我有问题,该行

require 'vendor/autoload.php';

所以我改成了

require 'path_to_this_file/bigcommerce.php';

一切现在工作很好...
但仍IAM学习更多

everything is working fine now... but iam still learning more