Megaventory API v2017a

<back to all web services

UserGet

The following routes are available for this service:
GET POST/User/UserGetGets User InfoUses the API Key and returns the User object that corresponds to the API key

Examples:




Get the user info (as mvUser object).

Value:

 {
   "APIKEY": "1234567890@m123"
}


Response:

 {
    "mvUser": {
        "APIKEY": "1234567890@m123",
        "UserName": "admin",
        "MobilePin": "1234",
        "AvatarURL": "",
        "IsAdministrator": true
    },
    "ResponseStatus": {
        "ErrorCode": "0"
    }
} 


To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/UserGet HTTP/1.1 
Host: api.megaventory.com 
Content-Type: text/jsv
Content-Length: length

{
	APIKEY: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	mvUser: 
	{
		APIKEY: String,
		UserName: String,
		MobilePin: String,
		AvatarURL: String,
		IsAdministrator: False,
		UserPermissions: 
		[
			{
				PageId: 0,
				PageName: String,
				PermissionTypes: 
				[
					{
						Type: ViewPage,
						Status: None
					}
				],
				EntityPermissionTypes: 
				[
					{
						Type: ViewPage,
						EntityPermissionStatuses: 
						[
							{
								Status: None,
								EntityIds: 
								[
									0
								]
							}
						]
					}
				]
			}
		]
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String
			}
		]
	}
}