 | AuthenticateControllerValidateMailBoxAccess Method (String, String, String, Boolean) |
Validate whether the specified user has access to the given mailbox.
Namespace:
MedTunnelSvc.Controllers
Assembly:
MedTunnelSvc (in MedTunnelSvc.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Result ValidateMailBoxAccess(
string MedTunnelMailbox,
string MedTunnelId,
string Password,
bool WantAllMessages
)
Public Function ValidateMailBoxAccess (
MedTunnelMailbox As String,
MedTunnelId As String,
Password As String,
WantAllMessages As Boolean
) As Result
public:
Result^ ValidateMailBoxAccess(
String^ MedTunnelMailbox,
String^ MedTunnelId,
String^ Password,
bool WantAllMessages
)
member ValidateMailBoxAccess :
MedTunnelMailbox : string *
MedTunnelId : string *
Password : string *
WantAllMessages : bool -> Result
Parameters
- MedTunnelMailbox
- Type: SystemString
The MedTunnel Id of the mailbox to check - MedTunnelId
- Type: SystemString
The MedTunnel Id of the user who would like access - Password
- Type: SystemString
The Password of the MedTunnel user who would like access - WantAllMessages
- Type: SystemBoolean
Does the user want all messages they have access to?
Return Value
Type:
ResultResult.ReturnCode values:
- 0 = An unknown error occurred
- 1 = Success
- 2 = Access denied
Examplescurl -X GET -k
-H "Authorization:PutAuthorizationTokenHere"
https://server.medtunnel.com/MedTunnelSvc/api/Authenticate/ValidateMailBoxAccess?MedTunnelMailbox=781&MedTunnelId=yourMedTunnelId&Password=yourPassword&WantAllMessages=true
See Also