Open San7ro opened 3 years ago
Hi @San7ro, have you tried units()->find()
? Because by get(id)
, you will get only one unit back, but with find()
you should get the whole list.
Yes of curse:
$client->units()->find();
gives me the error:
Fatal error: Uncaught Error: Call to undefined method Hitmeister\Component\Api\Namespaces\UnitsNamespace::find()
hi @San7ro, thanks for reaching out with this issue. We'll look into it!
@San7ro
find()
is a method of the FindBuilder
class, so the following should work: $client->units()->buildFind()->find();
I want to get all units, but there is no method to do this. This is the only way to do: units()->get(id_item); The documation allows it. You can get a list of all of your own units by sending a GET request to the /units/seller/ endpoint. Note: it can take several minutes for units to show up in this list after they are created.