title: Getting list of products by category in Magento using SOAP-based API
body: <p>I need to get all products belonging to a specific category in Magento using the web services API.  I tried this method:</p>
  
  <pre><code>$product_filter = array(
          'category_ids' =&gt; array('eq' =&gt; '41')
      );
  
  $product_templates = $magento_client -&gt; call($magento_session, 'product.list');
  </code></pre>
  
  <p>But it returns an error. I can only assume it's because <code>category_ids</code> is an array, so it won't really ever equal one specific value.</p>
  
  <p>I did some research and found another method called <code>category.assignedProducts</code> and tried:</p>
  
  <pre><code>$product_templates = 
  $magento_client -&gt; 
      call($magento_session, 'catalog_category.assignedProducts', array('41'));
  </code></pre>
  
  <p>But this returned an 'Access Denied' error.  I went and looked at my sandbox of Magneto and saw that 'Assigned Products' has 3 options: 'Remove', 'Update', 'Assign', and I know that the admin for the system I'm linking to has set my access to 'Read-Only'. So I'm guessing that we'd have to check off 'assign' in that list, which would give me more access than they want to give.</p>
  
  <p>I could retrieve all of the data and do the filtering on my end, but I wanted to check if anyone knew of a better way.</p>
  
  <p>Thanks.</p>