how to retrieve id manufacturer

how to retrieve id manufacturer

$  api = new maRest("www.host.com/magento/");      $  api->connect("user","xxxxxxx"); $  manufacturers = array(     "option" => array(         'label' => "Sony",     ) ); $  manufacturer = $  api->post("products/attributes/manufacturer/options", $  manufacturers); echo $  manufacturer->id; 

https://github.com/ezael/magento-2-api-made-easy