Method: users.settings.sendAs.get
Mendapatkan alias kirim-sebagai yang ditentukan. Gagal dengan error HTTP 404 jika alamat yang ditentukan bukan anggota kumpulan.
Permintaan HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
userId |
string
Alamat email pengguna. Nilai khusus "me" dapat digunakan untuk menunjukkan pengguna yang diautentikasi.
|
sendAsEmail |
string
Alias kirim-sebagai yang akan diambil.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance SendAs
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/gmail.settings.basic
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-05 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-05 UTC."],[[["Retrieves a specific send-as alias for a Gmail user using their email address."],["The request requires specifying the user's email address and the send-as alias email in the URL."],["An empty request body is necessary, and a successful response returns the details of the send-as alias."],["Authorization is required with one of the specified OAuth scopes, including access to Gmail settings or general Gmail access."]]],["This outlines retrieving a \"send-as\" alias via a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}`. The `userId` and `sendAsEmail` are path parameters, where \"me\" can replace the user's email. The request body must be empty. Successful requests return a `SendAs` instance, otherwise, a 404 error will occur if the alias is not found. One of the four listed OAuth scopes is required for authorization.\n"]]