Ich schaffe/„Aufträge/erstellen“ Haken in Shopify Registrierung, aber ich bin immer unten FehlerShopify Nicht in der Lage Aufträge erstellen erstellen Haken
Fatal error: Uncaught exception 'ShopifyApiException' with message 'Unprocessable Entity' in /var/www/wicked_report/shopify.php:70 Stack trace: #0 /var/www/wicked_report/shopifyapp.php(143): ShopifyClient->call('POST', '/admin/webhooks...', Array) #1 {main} thrown in /var/www/wicked_report/shopify.php on line 70
Als ich in der Lage bin „Kunden/erstellen“ Haken zu erstellen.
Hier ist der Code, den ich Haken
$customerhook = array("webhook"=>array(
"topic"=>"customers/create",
"address"=>"filepath/customer.php",
"format"=>"json"
)
);
$hook1 = $sc->call('POST', '/admin/webhooks.json', $customerhook);
$orderhook = array("webhook"=>array(
"topic"=>"orders/create",
"address"=>"filepath/order.php",
"format"=>"json"
)
);
$hook2 = $sc->call('POST', '/admin/webhooks.json', $orderhook);
Welcher Aufruf verursacht den Fehler, der erste oder der zweite (d. H. Welche Codezeile ist Zeile 143)? Es war vor einiger Zeit, dass ich zum letzten Mal Shopify verwendet habe, aber könnte es sein, dass die Eigenschaft "Adresse" eine vollständige URI (mit http [s]) sein muss? –
$ orderhook = array ("webhook" => array ( "thema" => "orders/create", "adresse" => "filepath/order.php", "format" => "json" ) ); $ hook2 = $ sc-> Aufruf ('POST', '/admin/webhooks.json', $ orderhook); dieser code sende fehlermeldung ... Und für adresse ist es volle url. Ich habe es gerade mit Vollweg aus Sicherheitsgründen geändert. – TBI