Created
March 10, 2015 07:55
-
-
Save rodde177/b2d8d1c8b3b7f853c016 to your computer and use it in GitHub Desktop.
Magento check API role
This file contains 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 | |
$apikey = Mage::getModel('api/user')->load(1)->getApiKey(); | |
print_r($apikey); | |
$roles = Mage::getModel('api/roles')->getCollection(); | |
foreach($roles as $role): | |
echo '<br/>Role : '.$role->getId()." | ".$role->getRoleName(); | |
endforeach; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment