我按照说明这里http://developer.bigcommerce.com/api/webhooks/quickstart建立网络挂接启动一些第三方订单处理。 我们一直在每小时一批这样,实时网络挂接触发器将会为我们节省了大量的滞后时间。
我想我已经组建网络挂接广播,但无法看到它被fired-我创建了一堆新订单并没有什么到达轨道服务器的任何证据。
我怎样才能知道的Bigcommerce被触发事件何时/何我期待?
产生对于给定的应用/用户/域的访问令牌:
curl -XPOST -d '{
"client_id":"[BigCommerceAppClientId]",
"client_secret":"[BigCommerceAppSecret]",
"user":"admin",
"token":"[adminAPIToken]",
"store_domain":"https://[myStore].mybigcommerce.com"
}' https://hooks-beta.bigcommerce.com/token
产量===>
{
"access_token":"[webHooksAccessToken]",
"producer":"store/[myStoreKey]"
}
订阅网络挂接的存储/事件/监听器:
curl -XPOST -d '{
"producer":"store/[myStoreKey]",
"scope":"store/order/created",
"deliverymethod":"HTTP_POST",
"destination":{"url":"http://[myPublicRailsServer]/hooks"}
}' -H 'X-Auth-Client: [BigCommerceAppClientId]' -H 'X-Auth-Token:[X-Auth-Token]' https://hooks-beta.bigcommerce.com
产量===>
{
"client_id":"[webHooksAccessToken]",
"created_at":"2013-06-27T19:57:38+00:00",
"deliverymethod":"HTTP_POST","destination":{"url":"http://[myPublicRailsServer]/hooks"},
"id":651,
"producer":"store/[myStoreKey]",
"scope":"store/order/created",
"updated_at":"2013-06-27T19:57:38+00:00"
}