get category with parent 0 in woocommerce rest api
<p>I am getting all categories by calling following function </p>

<pre><code>$wc_api = new WC_API_Client( $consumer_key, $consumer_secret, $store_url );
echo json_encode( $wc_api-&gt;get_categories());
</code></pre>

<p>which is calling following function </p>

<pre><code>public function get_categories( $params = array() ) {
    return $this-&gt;_make_api_call( 'products/categories', $params );
}
</code></pre>

<p>I want to add condition or parameter like want to get categoris which have parent = 0 how can i get it ?</p>