的Bigcommerce API。什么是URL字符串,让我下载订单XML的语法? [英] BigCommerce API. What is the syntax of an url string that would allow me to download orders in xml?
问题描述
的Bigcommerce API。什么是URL字符串,让我下载订单XML的语法?
我可以嵌入字符串中的登录凭据并张贴作为HTTPS GET或者我需要张贴他们为XML?
我曾尝试用户名,API_KEY,api_toke不同的变化和URL字符串中插入他们,但我一直得到错误。
BigCommerce API. What is the syntax of an url string that would allow me to download orders in xml? Can I embed the login credentials in the string and post as https get or do I need to post them as xml? I have tried different variations of username, api_key, api_toke and inserted them in the url string but I keep getting error messages.
推荐答案
要回答你的问题:否,你不能发送您的URL凭据。这值得怀疑,这样的事情会保留你的店的PCI合规性。
To answer your question: No, you cannot send your credentials in the URL. It's doubtful that such a thing would retain the PCI compliance of your store.
您将需要通过HTTP报头的东西,如卷曲发送您的用户凭据(用户名和API密钥)。从技术上讲,你可以做到这一点与AJAX但那是一个巨大的安全隐患,所以你必须处理请求的服务器端。
You would need to send your user credentials (username and API key) via HTTP headers with something like CURL. Technically you can do this with AJAX but thats a huge security risk so you have to process the request server side.
如果你想测试你是否能真正发挥连接 试试这个的: http://www.hurl.it/
If you want to test if you can actually make a connection try this: http://www.hurl.it/
网址: SITE_URL / orders.xml中结果
获取结果
HTTP基本验证 - >结果
用户名:的Bigcommerce用户名搜索
密码: API密钥
URL: site_url/orders.xml
GET
HTTP Basic Auth ->
Username: Bigcommerce username
Password: API Key
这应该返回一个结果。
这篇关于的Bigcommerce API。什么是URL字符串,让我下载订单XML的语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!