curl to gmail always un authorization in gcp

when i use 'curl' in gcp,i want get gmail information in,but always responds Unauthorized
then i try to another way in local-server use and it well be success

"curl -u USERNAME:PASSWARD --silent https://mail.google.com/mail/feed/atom"

0 3 437
3 REPLIES 3
Top Labels in this Space