safe-base64 | An url safe base64 encode/decode library | Messaging library
kandi X-RAY | safe-base64 Summary
kandi X-RAY | safe-base64 Summary
An url safe base64 encode/decode library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Encode a hexadecimal string
- Decodes a binary string
safe-base64 Key Features
safe-base64 Examples and Code Snippets
Community Discussions
Trending Discussions on safe-base64
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 safe-base64
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
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