[[ TOKEN, DOMAIN1, and DOMAIN2 are redactions --requinix ]]
Hi, I have a piece of code that I can execute with bash curl without problem:
mac70:gsuite_automate ted.chou$ curl -H "Authorization: OAuth TOKEN" https://apps-apis.google.com/a/feeds/domain/2.0/DOMAIN1/sso/general -v
* Trying 64.233.187.118...
* TCP_NODELAY set
* Connected to apps-apis.google.com (64.233.187.118) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.google.com
* Server certificate: Google Internet Authority G2
* Server certificate: GeoTrust Global CA
> GE