cobby API requests and events
This is a complete list of API requests and events. It is intended exclusively for customers who develop their own Magento extensions based on cobby. Requests that also trigger an event can be used in an observer to attach to the event and manipulate data. With the release of cobby version 1.38.1.1, many requests have changed to a leaner naming scheme. So if you made custom extensions in previous versions of cobby, you should have your observer check for the old and the new format.
Example extension
You can find our example file for Magento 1 here and for Magento 2 here.
If your extension writes directly to Magento's database, cobby needs to be notified of the change. You can use this event to do that:
//1,2,3 are productids
Mage::dispatchEvent('cobby_handle_changes', array(
'entity' => 'product',
'action' => 'save',
'ids' => array(1,2,3),
'context' => 'custom',
'username' => 'Bob'
));
Tools
Postman and cobby API-requests
Example events
- cobby_import_...._import_before | manipulate the data before the import happens
- cobby_import_...._import_after | manipulate the way how the returned data is rendered in cobby
Events that differ from this scheme have an explanation directly at the event.
Attribute SetAttribute Set (export)
- m1: cobby_catalog_product_attribute_set.export
- m2: GET cobby/products/attribute/sets
- Event: none