-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with URL parameter #137
Comments
Hey, no worries, all questions are welcome! Can you please try calling Graph with full URL of the endpoint and see if that works? $provider->get('https://graph.microsoft.com/v1.0/users?$search="displayName:Mohazzab"', $token); /cc: @RaminMohazzab |
Hey! Thank you for your answer. I tried this - i get this message: Fatal error: Uncaught Error: Call to a member function hasExpired() on null in /var/www/web991/html/wordpress/elternsprechtag/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php:204 Stack trace: #0 /var/www/web991/html/wordpress/elternsprechtag/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php(169): TheNetworg\OAuth2\Client\Provider\Azure->request('get', 'https://graph.m...', NULL, Array) #1 /var/www/web991/html/wordpress/elternsprechtag/oauth.php(38): TheNetworg\OAuth2\Client\Provider\Azure->get('https://graph.m...', NULL) #2 {main} thrown in /var/www/web991/html/wordpress/elternsprechtag/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php on line 204 Do i have to use another endpoint? |
Hm, |
hey, this would be great! My Email: [email protected] |
maybe it is a problem with the header - the key "ConsistencyLevel" is needed. Is this correct?
|
Yeah, consistency level is required as per docs: https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http |
Hello! First of all: I am a physics teacher, so please don't expect too much from me. I want to query the contacts from the school's Office365. When I test the query in Microsoft Graphexplorer, everything works fine:
https://graph.microsoft.com/v1.0/users?$search="displayName:Mohazza"
but when I do the query with php, the options are ignored:
$str = 'users?$search="displayName:Mohazzab"'; <= No effect.
$response = $provider->get($str, $accessToken);
Can anybode help, please?
Thx
Ramin
The text was updated successfully, but these errors were encountered: