kloon / WooCommerce-REST-API-Client-Library

A PHP wrapper for the WooCommerce REST API
GNU General Public License v3.0
356 stars 175 forks source link

Get only specified fields for an order #244

Open tmblog opened 6 years ago

tmblog commented 6 years ago

Hello thank you for the amazing api, I just wondered everytime I make a call for orders:

$client->orders->get();

I am getting the entire response, is there a way to just get the fields that i want for example:

$client->orders->get(array[total, first_name, last_name]);

I think I saw it available on the official one but can't find it. Any help would be much appreciated.

silent-saw commented 5 years ago

@tmblog Did you manage to get the specific fields from the API? I am in real need . The unnecessary response is making an app laggy.