POST api/2.0/mail/accounts/oauth
Creates a mail account with OAuth authentication (only Google OAuth is supported).
Name |
Description |
Type |
Example |
code
sent in body
|
OAuth code
|
string
|
some text
|
type
sent in body
|
OAuth service type: 0 - Unknown, 1 - Google
|
System.Byte
|
|
POST api/2.0/mail/accounts/oauth
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"code": "some text",
"type": 0
}