Skip to content
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

Allow to use the API for another user point of view #14

Open
rgazelot opened this issue Mar 2, 2016 · 2 comments
Open

Allow to use the API for another user point of view #14

rgazelot opened this issue Mar 2, 2016 · 2 comments

Comments

@rgazelot
Copy link
Contributor

rgazelot commented Mar 2, 2016

We force the API to target the current user's data https://github.com/Calendart/Office365Adapter/blob/master/src/Office365Adapter.php#L41. But the API allow us to target another user's data using /users/<id>. I think that this should be available in our library.

@Taluu
Copy link
Contributor

Taluu commented Mar 2, 2016

The thing is, the api (or how we are using it) already uses the oauth token of a current user. So I think that if we should ever se CalendArt with another user, we would need its oauth token, so we can be in the context of said user (and thus keep using /me endpoints)

@rgazelot
Copy link
Contributor Author

rgazelot commented Mar 2, 2016

Not really. You can use your access_token and request some informations about a user if he's a part of your group or team etc. If you have any granted access on him.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants