IFacade
From Agnitio WIKI
Contents |
iFacade Methods
Methods names map
abstract function authenticate($username, $password, $udId = -1); => "authenticate"; abstract function signOut(); => "signOut"; abstract function getAuthenticatedUser(); => "getAuthenticatedUser"; abstract function getPresentationList(); => "getPresentationList"; abstract function getPresentationContent($presentationId); => "getPresentationContent"; abstract function getContacts(); => "getContacts"; abstract function uploadMonitoring($monitoringData); => "uploadMonitoring"; abstract function getViewerContent(); => "getViewerContent";
Method parameters example
$_POST[["method"]] = "authenticate"; $_POST[["params"]][["username"]] = "admin"; $_POST[["params"]][["password"]] = "212231r297a57a5a743894a0e4a801fc3";
Methods return examples
- authenticate()
(Object)#0 result = (Object)#1 authenticated = true status = "result"
- signOut()
(Object)#0 result = (Object)#1 authenticated = false status = "result"
- getAuthenticatedUser()
(Object)#0
result = (Object)#1
company = "ipad"
companyId = 36
emailAddress = "salesOne@agnitio.com"
expirationPeriod = 0
firstName = "sales one"
groupIds = (Object)#2
0 = 1
id = 16
lastName = "sales one"
role = "Salesforce"
roleId = 6
roleIds = (Object)#3
0 = 6
status = "result"
- getPresentationList()
(Object)#0
result = (Array)#1
[0] (Object)#2
description = "DESCRIPTION ONE TEST"
id = 1
modificationTime = 1282730194
name = "presentation 1 TEST ONE"
size = 2582884
targetPath = "iplanner/manager/ipad/published/1/"
[1] (Object)#3
description = "DESCRIPTION TWO TEST"
id = 2
modificationTime = 1282222842
name = "presentation 2 TEST 2"
size = 13
targetPath = "iplanner/manager/ipad/published/2/"
status = "result"
- getPresentationContent(presentationId : int)
(Object)#0
result = (Array)#1
[0] (Object)#2
modificationTime = 1282730191
name = "index.html"
size = 1978
[1] (Object)#3
modificationTime = 1282730191
name = "js/seg_tablet.js"
size = 19734
[2] (Object)#4
modificationTime = 1282730191
name = "js/jquery-1.4.2.min.js"
size = 72174
[3] (Object)#5
modificationTime = 1282730191
name = "js/navigaton_scroll.js"
size = 2390
[4] (Object)#6
modificationTime = 1282730191
name = "js/navigation.js"
size = 789
[5] (Object)#7
modificationTime = 1282730191
name = "js/popup.js"
size = 1614
[6] (Object)#8
modificationTime = 1282730191
name = "js/swap_pages2.js"
size = 4266
[7] (Object)#9
modificationTime = 1282730191
name = "js/script.js"
size = 1369
[8] (Object)#10
modificationTime = 1282730191
name = "js/jScrollPane.js"
size = 22692
[9] (Object)#11
modificationTime = 1282730191
name = "js/swipe.js"
size = 2654
[10] (Object)#12
modificationTime = 1282730191
name = "js/touch_scroll.js"
size = 3528
[11] (Object)#13
modificationTime = 1282730191
name = "js/swap_pages.js"
size = 4068
[12] (Object)#14
modificationTime = 1282730190
name = "js/data_highlight_slider.js"
size = 3745
status = "result"
- getContacts()
(Object)#0
result = (Array)#1
[0] (Object)#2
accessibility = (null)
accountIds = (Array)#3
address = (null)
address2 = "third3"
attitude = (null)
brick = "third3"
bttcDay = (null)
bttcEndTime = (null)
bttcStartTime = (null)
callFrequency = (null)
cellPhone = "third3"
city = "third3"
companyId = 2
contactType = (null)
country = "third"
eDetailing = (null)
email = "third3"
externalContactId = "third3"
firstName = "third3"
formalTitle = "third3"
gender = "Male"
geography = "third3"
id = "third3"
jobTitle = "third3"
kol = (null)
lastName = "v"
mainPhone = "third3"
middleName = "third3"
noSeePhysician = (null)
optIn = "No"
postalCode = "third3"
primarySpecialty = "third3"
sellingStageValue = (null)
speaker = (null)
specialty = "third3"
targetingCategoryValue = (null)
[1] (Object)#4
accessibility = (null)
accountIds = (Array)#5
address = "first11"
address2 = "first1"
attitude = (null)
brick = "first1"
bttcDay = "Monday"
bttcEndTime = (null)
bttcStartTime = (null)
callFrequency = (null)
cellPhone = "first1"
city = "first1"
companyId = 2
contactType = (null)
country = (null)
eDetailing = (null)
email = "first1"
externalContactId = "first1"
firstName = "first1"
formalTitle = "first1"
gender = "Male"
geography = "first11"
id = "first1"
jobTitle = "first1"
kol = "Yes"
lastName = "first1"
mainPhone = "first1"
middleName = "first1"
noSeePhysician = "Yes"
optIn = "No"
postalCode = "first1"
primarySpecialty = "first1"
sellingStageValue = (null)
speaker = "Yes"
specialty = "first1"
targetingCategoryValue = (null)
[2] (Object)#6
accessibility = "second2"
accountIds = (Array)#7
address = "second2"
address2 = "second2"
attitude = "second2"
brick = "second2"
bttcDay = "Tuesday"
bttcEndTime = (null)
bttcStartTime = (null)
callFrequency = (null)
cellPhone = "second2"
city = "second2"
companyId = 2
contactType = "second2"
country = "secon"
eDetailing = (null)
email = "second2"
externalContactId = "second2"
firstName = "second2"
formalTitle = "second2"
gender = "Male"
geography = "second2"
id = "second2"
jobTitle = "second2"
kol = "Yes"
lastName = "second2"
mainPhone = "second2"
middleName = "second2"
noSeePhysician = "Yes"
optIn = "No"
postalCode = "second2"
primarySpecialty = "second2"
sellingStageValue = "second2"
speaker = "Yes"
specialty = "second2"
targetingCategoryValue = "second2"
status = "result"
- uploadMonitoring(monitoringData : Object)
TBD.
- getViewerContent()
(Object)#0
result = (Array)#1
[0] (Object)#2
modificationTime = 1282730191
targetPath = "iplanner/manager/ipad/viewer/"
name = "js/monitor.js"
size = 1381
[1] (Object)#3
modificationTime = 1282730191
targetPath = "iplanner/manager/ipad/viewer/"
name = "js/facade.js"
size = 2755
status = "result"
- Fault for all methods:
(Object)#0 status = "fault" code = 1
Fault codes:
1 - Not authorized.