Next4Me
 All Classes Files Functions Variables
CmplxUserAccountAndDetail
CmplxUserAccountAndDetail.addEditUserAccountAndDetail
Asset nou:
REQ:
{
"method": "addEditUserAccountAndDetail",
"entity": {
"IdUserAccount": "0",
"UserName": "Ion",
"Password": "Ion",
"RecoveryAnswer": "Ion",
"RecoveryQuestion": "Ion",
"Email": "ion@ion.io",
"Active": "1",
"LastLogInIp": "127.0.0.1",
"LastLogInDate": "2012-02-02 12:22:22",
"Fail": "0",
"IdContactMyself": "0",
"UserAccountType": "0",
"Contact": [
{
"IdContact": "0",
"Name": "Ion",
"Surname": "Ion",
"Company": "Ion",
"Birthday": "1978-02-02",
"Gender": "M",
"Address": [
{
"IdAddress": "0",
"Type": "Home Address",
"IdRegion": "3",
"Street": "Street",
"Number": "10",
"Building": "6",
"Floor": "7",
"Appartment": "33",
"Lat": "45.2014",
"Long": "25.3025",
"IdContact": "0"
}
],
"Email": [
{
"IdEmail": "0",
"Value": "ion@ion.io",
"Type": "Office Email",
"IdContact": "0"
}
],
"Phone": [
{
"IdPhone": "0",
"Value": "0722222222",
"Type": "Office Phone",
"IdContact": "0"
}
]
}
]
}
}
RESP:
{
"resultId": 0,
"resultCode": "1"
}
Edit Asset:
REQ:
{
"method": "addEditUserAccountAndDetail",
"entity": {
"IdUserAccount": "1",
"UserName": "Ion",
"Password": "Ion",
"RecoveryAnswer": "Ion",
"RecoveryQuestion": "Ion",
"Email": "ion@ion.io",
"Active": "1",
"LastLogInIp": "127.0.0.1",
"LastLogInDate": "2012-02-02 12:22:22",
"Fail": "0",
"IdContactMyself": "0",
"UserAccountType": "0",
"Contact": [
{
"IdContact": "0",
"Name": "Ion",
"Surname": "Ion",
"Company": "Ion",
"Birthday": "1978-02-02",
"Gender": "M",
"Address": [
{
"IdAddress": "0",
"Type": "Home Address",
"IdRegion": "3",
"Street": "Street",
"Number": "10",
"Building": "6",
"Floor": "7",
"Appartment": "33",
"Lat": "45.2014",
"Long": "25.3025",
"IdContact": "0"
}
],
"Email": [
{
"IdEmail": "0",
"Value": "ion@ion.io",
"Type": "Office Email",
"IdContact": "0"
}
],
"Phone": [
{
"IdPhone": "0",
"Value": "0722222222",
"Type": "Office Phone",
"IdContact": "0"
}
]
}
]
}
}
RESP:
{
"resultId": 0,
"resultCode": "1"
}
--------------------------------------------------------------------------------------------------------------
CmplxUserAccountAndDetail.getUserAccountAndDetail
Listare informatii UserAccountAndDetail:
REQ:
{
"method": "getUserAccountAndDetail",
"entity": {
"IdUserAccount": "1",
"pageNo": "1",
"pageSize": "10",
"orderColumn": "IdAsset",
"orderType": "DESC"
}
}
RESP:
{
"resultId": 0,
"resultCode": [
{
"IdUserAccount": 1,
"UserName": "Ion",
"Password": "Ion",
"RecoveryAnswer": "Ion",
"RecoveryQuestion": "Ion",
"Email": "ion@ion.io",
"Active": 1,
"LastLogInIp": "127.0.0.1",
"LastLogInDate": "2012-02-02 12:22:22",
"Fail": 0,
"IdContactMyself": 0,
"UserAccountType": 0,
"Contact": [
{
"IdContact": 17,
"Name": "Ion",
"Surname": "Ion",
"Company": "Ion",
"Birthday": "1978-02-02",
"Gender": "M",
"Address": [
{
"IdAddress": 4,
"Type": "Home Address",
"IdRegion": 3,
"Street": "Street",
"Number": "10",
"Building": "6",
"Floor": "7",
"Appartment": "33",
"Lat": 45.201400756836,
"Long": 25.302499771118,
"IdContact": 17
}
],
"Phone": [
{
"IdPhone": 9,
"Value": "0722222222",
"Type": "Office Phone",
"IdContact": 17
}
],
"Email": [
{
"IdEmail": 9,
"Value": "ion@ion.io",
"Type": "Office Email",
"IdContact": 17
}
]
}
]
}
]
}
--------------------------------------------------------------------------------------------------------------