gsync | like command to sync a git repo | Incremental Backup library
kandi X-RAY | gsync Summary
kandi X-RAY | gsync Summary
rsync-like command to sync a git repo to a remote machine via git itself.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gsync
gsync Key Features
gsync Examples and Code Snippets
Community Discussions
Trending Discussions on gsync
QUESTION
I am looking for a way how to change user profile photo programmatically.
Generally, I need to be able to change avatars of domain GSuite users, but if there are API for changing my own avatar is also good.
Had tried already:
- https://developers.google.com/admin-sdk/directory/v1/reference/users/photos/update - this API is working but only changes the small icon of a user in admin panel itself. The main profile picture remains the same.
- https://developers.google.com/people/api/rest/v1/people/updateContactPhoto - this API throws me an error
Resource name "people/10244712xxxxx1564465" is not a valid contact person resource.
when I am trying to replace my own profile image.people/me
also isn't working.
There are Contacts API
, but I am trying to change my own (or impersonated one) profile image, so I believe this API isn't for my case.
If you can point me in some direction to search I'll be very glad. I just do not believe that there is no way to change avatar, it can't be for real.
Update:
Checked Contact API
- also doesn't work, looks like it changes an avatar only on me
in my contact list, nobody else doesn't see changes, and the main profile picture remains the same.
Code:
...ANSWER
Answered 2020-Jul-28 at 12:34Ok, so as @Sudhakar mention there is no such API.
But I've found that admin directory API actually changes the profile in most places.
The trick in that the user needs manually once remove the avatar from https://aboutme.google.com/ Profile picture
because this photo has top priority against admin directories one.
If the user removes the photo from aboutme.google.com then changes it via admin directory v1 API this photo is seen in the calendar, Gmail, contacts...
So check my first code sample:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gsync
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page