Added User API functions restrictions and API within-allowed-campaigns list ID restrictions
git-svn-id: svn://192.168.202.10@2314 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
AGENT API DOCUMENT Started: 2008-07-03 Updated: 2015-03-13
|
||||
AGENT API DOCUMENT Started: 2008-07-03 Updated: 2015-04-29
|
||||
|
||||
This document describes the functions of an API(Application Programming Interface)
|
||||
for the VICIDIAL Agent screen. This functionality will be rather limited at first
|
||||
@@ -63,6 +63,7 @@ Response to calls will return either an ERROR or a SUCCESS along with an explana
|
||||
for example:
|
||||
SUCCESS: external_status function set - 6666|A
|
||||
ERROR: agent_user is not logged in - 6666
|
||||
ERROR: auth USER DOES NOT HAVE PERMISSION TO USE THIS FUNCTION - 6666|webserver|ADMIN
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2015-04-28
|
||||
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2015-04-30
|
||||
|
||||
This document describes the functions of an API(Application Programming
|
||||
Interface) for all functions NOT directly relating to the VICIDIAL Agent screen.
|
||||
@@ -102,6 +102,7 @@ Changes:
|
||||
150309-0250 - Added ability to use urlencoded web form addresses
|
||||
150313-0818 - Allow for single quotes in vicidial_list and custom data fields
|
||||
150428-1720 - Added web_form_address_three to add_list/update_list functions
|
||||
150430-0644 - Added API allowed function restrictions and allowed list restrictions
|
||||
|
||||
|
||||
API Functions use the 'function' variable
|
||||
@@ -109,6 +110,9 @@ API Functions use the 'function' variable
|
||||
NOTE: Just as with the Agent API, the non-agent API requires the user and pass of a
|
||||
valid api-enabled vicidial_users account to execute actions.
|
||||
|
||||
Example response if user permissions do not allow the function attempted:
|
||||
ERROR: auth USER DOES NOT HAVE PERMISSION TO USE THIS FUNCTION - 6666|add_lead
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
@@ -635,6 +639,7 @@ ERROR: add_lead INVALID PHONE NUMBER AREACODE - 72755|6666
|
||||
ERROR: add_lead INVALID PHONE NUMBER NANPA AREACODE PREFIX - 7275551212|6666
|
||||
|
||||
ERROR: add_lead USER DOES NOT HAVE PERMISSION TO ADD LEADS TO THE SYSTEM - 6666|0
|
||||
ERROR: add_lead NOT AN ALLOWED LIST ID - 7275551212|98762
|
||||
|
||||
ERROR: NO FUNCTION SPECIFIED
|
||||
|
||||
@@ -777,6 +782,7 @@ ERROR: update_lead NO MATCHES FOUND IN THE SYSTEM - 6666|||
|
||||
ERROR: update_lead NO VALID SEARCH METHOD - 6666|SYSTEM|||
|
||||
|
||||
ERROR: update_lead USER DOES NOT HAVE PERMISSION TO UPDATE LEADS IN THE SYSTEM - 6666|0
|
||||
ERROR: update_lead NOT AN ALLOWED LIST ID - 7275551212|98762
|
||||
|
||||
|
||||
|
||||
@@ -1183,6 +1189,7 @@ http://server/vicidial/non_agent_api.php?source=test&user=6666&pass=1234&functio
|
||||
Example responses:
|
||||
ERROR: update_list USER DOES NOT HAVE PERMISSION TO UPDATE LISTS - 6666
|
||||
ERROR: update_list YOU MUST USE ALL REQUIRED FIELDS - 6666|1
|
||||
ERROR: update_list NOT AN ALLOWED LIST ID - 98762
|
||||
NOTICE: update_list LIST DOES NOT EXIST, SENDING TO add_list FUNCTION - 6666|1000
|
||||
ERROR: update_list LIST DOES NOT EXIST - 6666|1000
|
||||
ERROR: update_list CAMPAIGN DOES NOT EXIST, THIS IS AN OPTIONAL FIELD - 6666|TESTCIMP
|
||||
|
||||
Reference in New Issue
Block a user