This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function sign($method, $url, $data, $consumerSecret, $tokenSecret) | |
| { | |
| $url = urlEncodeAsZend($url); | |
| $data = urlEncodeAsZend(http_build_query($data, '', '&')); | |
| $data = implode('&', [$method, $url, $data]); | |
| $secret = implode('&', [$consumerSecret, $tokenSecret]); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Created by Rafael Corrêa Gomes | |
| // Reference http://devdocs.magento.com/guides/m1x/api/rest/introduction.html#RESTAPIIntroduction-RESTResources | |
| // Custom Resource | |
| $apiResources = "products?limit=2"; | |
| // Custom Values | |
| $isAdminUser = true; | |
| $adminUrl = "admin"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE eav_attribute_option_value FROM eav_attribute_option,eav_attribute_option_value WHERE eav_attribute_option.attribute_id > 133 and eav_attribute_option.option_id = eav_attribute_option_value.option_id; | |
| DELETE FROM eav_attribute WHERE attribute_id > 133; | |
| DELETE FROM eav_attribute_label WHERE attribute_id > 133; | |
| DELETE FROM eav_attribute_option WHERE attribute_id > 133; | |
| DELETE FROM eav_attribute_group WHERE attribute_set_id > 25; |