将 php 与 bigcommerce api 集成 [英] integrating php with bigcommerce api

查看:29
本文介绍了将 php 与 bigcommerce api 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Bigcommerce Api 整个概念的新手,但我的 php 编程很好.如果我要集成我可能用 bigcommerce api 创建的 php 代码,我在确定从哪里开始时遇到问题,我的文件去哪里了?他们究竟是如何互动的...

I am a newbie to the whole concept of the Bigcommerce Api, but my php programming is good. I am having problems with identifying where to start exactly if i am going to integrate the php code that I may have created with the bigcommerce api, Where do my files go? How do they interact exactly...

在 Bigcommerce 网站上,他们定义了它的全部内容,并提供了基本的 php 代码.Google 是我的朋友,但她无法帮助我提供整个如何开始"部分的链接...

On the Bigcommerce site, they define what its all about, and provide the basic php codes. Google is my friend but she hasn't been able to help me with links for the whole "How to get started" part...

或者我问她的问题有误.

Or maybe I am asking her the wrong questions.

我的最终任务是从 xml 文件中获取数据并使用 php 处理其余的处理和显示..我是新手,我不确定它是如何工作的.但是指向正确教程的链接确实会有所帮助

My ultimate task is to take data from an xml file and use php to handle the rest of the processing and displaying.. I am a newbie and I am not sure how it really works. But links to proper tutorials will really help

推荐答案

显然我不知道 Big-commerce 不需要我在他们这边托管任何服务器代码或其他什么,我发现我编写的代码只是在我这边运行,所以我可以与我的商店进行交互.我想知道为什么我无法在任何地方轻松找到这些信息,当我们到达 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 商店外部.Bigcommerce API 基本上为您提供了一种使用程序访问和更改商店数据库的方法.您将与与特定商店相关数据(例如您的产品或订单)相关联的 API 资源端点 (URL) 进行交互.您可以对这些 URL 发出 GET、PUT、POST 和 DELETE 请求,以分别拉取、修改、创建或删除存储相关数据.php 文件在这里 https://github.com/bigcommerce/bigcommerce-api-php ,这些应该在带有 PHP 服务器的机器中要开始使用,那里也有示例代码.

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.

我在这条线上遇到了问题

i had problems with this line

require 'vendor/autoload.php';

所以我把它改成

require 'path_to_this_file/bigcommerce.php';

现在一切正常...但我还在学习更多

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

这篇关于将 php 与 bigcommerce api 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆