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

HTTP + CSV

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

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

APIKEY
String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

APIKEY,UserName,MobilePin,AvatarURL,IsAdministrator,UserPermissions
String,String,String,String,False,"[{PageId:0,PageName:String,PermissionTypes:[{Type:ViewPage,Status:None}],EntityPermissionTypes:[{Type:ViewPage,EntityPermissionStatuses:[{Status:None,EntityIds:[0]}]}]}]"