• Resolved davidpu770

    (@davidpu770)


    Hey,

    I’m using the rest API to fill an extrnal table with all the existing categories

    But when I’m trying to request with parameter for example per_page=100 I’m getting only 10 rows as the defult per_page value is 10.

    
    //$module goes for $endpoint
            try {
    
                $result = $this->wooCommerce()->get($module, $_GET);
    
            } catch (\Exception $e) {
    
                return new SwalController('error',$e->getMessage(),'error') and die();
    
            }
    

    WC verision: 3.3.3
    WP verision: 4.9.5

    • This topic was modified 6 years, 7 months ago by davidpu770.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘REST API > Can’t use paramters while using GET request’ is closed to new replies.