Open lewisstancer opened 2 years ago
Getting similar errors when trying to use some of the query parameters mentioned in the API reference. Another example is user_ids
set to a comma separated string of OneLogin ID's. returns blank from the SDK, no exception or errors.
fields
works but throws warnings:
Warning: Undefined property: stdClass::$email in /var/www/vendor/onelogin/api/src/models/User.php on line 120
API Get Users V1 which is the one that covers this SDK right now does not support sort by the firstname value. Only the id by providing id or -id
Leaving sort blank does not execute any sort at all.
user_ids is a valid parameter of the V2 API, but this SDK uses V1.
This commit fixes the warning you experienced: https://github.com/onelogin/onelogin-php-sdk/commit/d605f3ceb375ee30e7f124cdff4f20c915cd5250
Do you know if and when the SDK will be updated to support V2? Thanks
There are plans to release a new version of thr SDK, supporting V2.
Months ago the Python SDK was released, this month is supposed to be released the updated version of the Java SDK. Then Ruby and PHP SDKs will be implemented. I cant provide to you an exact release date atm.
Ok thank you. Has the commit been pushed to Packagist so it is available as an update through composer?
From the OneLogin API Reference: OneLogin API - Users
Attempted code
Returns: Empty array (blank)
For now the workaround is to just leave sort blank but I assume I am either doing this wrong or it is something to do with character encoding but as it isn't documented I can't be sure