msgraph.go icon indicating copy to clipboard operation
msgraph.go copied to clipboard

How to download the Photo of a user?

Open dkrizic opened this issue 4 years ago • 0 comments

I would like to obtain the Photo for a given user. I just find the metadata like height

			photo, err := graphClient.Users().ID( *user.ID ).Photo().Request().Get(ctx)
			var height = photo.Height

The documentation states that there should be a "$value" added to the path. How do I construct it?

dkrizic avatar Jul 16 '21 14:07 dkrizic