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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"APIKEY":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}]}}