Closed JiDW closed 5 months ago
Hello @JiDW, I know this is is super old but just in case someone is looking for help, you can easily solve this by encoding the email like this:
$email = rawurlencode('test+alias@gmail.com');
$check = $client->users()->search([
"query"=>"type:user+email:$email"
]);
Regards.
The package should support email addresses that are in compliance with the RFC.
Tank you very much for your contribution @kustomrtr.
@sudomoke - I agree this would be ideal, we do accepts open-source contributions. Please use the encoding as suggested in the meantime.
Hello,
Right now, you can't search emails that contains a "+" sign (which is a valid email character) because the SDK fails to understand the difference between the character and the Zendesk operator.
For example, this doesn't work:
It seems to work when you call the REST API directly so it appears to be related to how the PHP client handles it.
See https://develop.zendesk.com/hc/en-us/community/posts/360034827214-Can-t-search-for-emails-with-a-plus-sign for the related forum post.
Thanks