Click or drag to resize

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)
Syntax
public Result ValidateMailBoxAccess(
	string MedTunnelMailbox,
	string MedTunnelId,
	string Password,
	bool WantAllMessages
)

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: Result
Result.ReturnCode values:
  • 0 = An unknown error occurred
  • 1 = Success
  • 2 = Access denied
Examples
PHP/Curl
curl -X GET -k 
        -H "Authorization:PutAuthorizationTokenHere" 
        https://server.medtunnel.com/MedTunnelSvc/api/Authenticate/ValidateMailBoxAccess?MedTunnelMailbox=781&MedTunnelId=yourMedTunnelId&Password=yourPassword&WantAllMessages=true
See Also