Copyright © 2015 Smartcall

Revision History:

Author Version Date Description
Danie van der Walt 0.1 Tue 21 July 2015 Initial API Created
Copyright © 2015 Smartcall

Index:


Notes



AgencyFunctions
List setting_types(s) on the ssystem

List agency setting(s) on the ssystem
Edit an agency setting on the ssystem


UserCategoryFunctions
List user category type(s) on the system

List user category(s) on the system


UserFunctions
Get Agency from Domain

Login as a user

Validate a Session ID

Log a user out

List user_type(s) on the ssystem

List all users of a type for a agency on the ssystem


UserNotificationsFunctions
List user notification(s) on the ssystem
Edit an user notification on the ssystem
Delete an user notification on the ssystem


UserProfileFunctions
List user profile type(s) on the ssystem

List user profile(s) on the ssystem
Edit an user profile on the ssystem
Add an user profile item on the ssystem

agency_functions_agency_setting_types_list

Description:
List setting_types(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
agency_setting_types - container for all agency_setting_types
agency_setting_type - container for each agency_setting_types
agency_setting_type_id - ID of the item
agency_setting_type_desc - Description of the item
agency_setting_type_default_value - Default value for the item
agency_setting_type_can_edit - Can the item be edited.
agency_setting_type_setting_type - Type for the Item

Back to Index
Copyright © 2015 Smartcall

agency_functions_agency_settings_list

Description:
List agency setting(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
agency_settings - container for all items
agency_setting - container for each item
agency_setting_id - ID of the setting
agency_setting_type_id - ID of the setting type
agency_setting_value - Value of the setting

Back to Index
Copyright © 2015 Smartcall

agency_functions_agency_settings_edit

Description:
Edit an agency setting on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
agency_setting_id - ID of the Item to edit
agency_setting_value - The new value

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_category_functions_user_category_types_list

Description:
List user category type(s) on the system
Sent Xml:
Sent Json:

Info:
api_action - The name of the function

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_category_types - container for all items
user_category_type - container for each item
user_category_type_id - ID of the item
user_category_type_value - Value for the item

Back to Index
Copyright © 2015 Smartcall

user_category_functions_user_category_list

Description:
List user category(s) on the system
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
api_content - container for all incomming data
session_id - The Session ID for the user

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_categories - Container for all items
user_category - Container for each item
user_category_id - ID of the item
user_category_types_id - The ID of the category type
user_category_hourly_cost- The hourly cost for the user

Back to Index
Copyright © 2015 Smartcall

user_functions_get_agency_from_domain

Description:
Get Agency from Domain
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
domain - the url of the domain

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
agency_id - the ID of the agency

Back to Index
Copyright © 2015 Smartcall

user_functions_login

Description:
Login as a user
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
agency_id - the ID for the agency to log in under
username - username of the user
password - password for the user

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
session_id - the ID of the session
user_type_id - ID of the user type

Back to Index
Copyright © 2015 Smartcall

user_functions_validate_session

Description:
Validate a Session ID
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
session_id - The Session_id to validate

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_functions_logout

Description:
Log a user out
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
session_id - the session_id to destroy

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_functions_user_type_list

Description:
List user_type(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_types - container for all user types
user_type - container for each user type
user_type_id - ID for the user type
user_type_value - Description of the user type
user_type_level - User type Level

Back to Index
Copyright © 2015 Smartcall

user_functions_agency_user_list

Description:
List all users of a type for a agency on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
action_content - container for all parameters
agency_users - return only agency_users
client_users - return only client_users
event_staff_users - return only even staff users

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
users - container for all items
user - container for each item
user_id - ID of the user
user_type_id - ID of the user type
user_username - username of the user
user_active - Is the user active
user_dbdate_added - when the user was added
user_dbdate_activated - when ther user was activated

Back to Index
Copyright © 2015 Smartcall

user_notification_functions_user_notification_list

Description:
List user notification(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
session_id - ID of the session

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_notifications - container for all items
user_notification - container for each item
user_notification_id - ID of the item
user_notification_value - Message of the notification
user_notification_dbdate - Date the notification was created
user_notification_shown - has this message been shown before

Back to Index
Copyright © 2015 Smartcall

user_notification_functions_user_notification_edit

Description:
Edit an user notification on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
user_notification_id - ID of the Item to edit
user_notification_shown - HAs the item been shown

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_notification_functions_user_notification_delete

Description:
Delete an user notification on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
user_notification_id - ID of the Item to edit

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_profile_functions_user_profile_types_list

Description:
List user profile type(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_profile_types - container for all items
user_profile_type - continer for each item
user_profile_type_id - ID of the item
user_type_id - ID of the user type
user_profile_type_desc - description of the item
user_profile_type_default_value - Default value for the item
user_profile_type_can_edit - Can the Item be edited
user_profile_type_type - Type of item

Back to Index
Copyright © 2015 Smartcall

user_profile_functions_user_profile_list

Description:
List user profile(s) on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
session_id - ID of the session

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical
user_profiles - container for all items
user_profile - continer for each item
user_profile_id - ID of the item
user_profile_type_id - ID of the profile type
user_profile_value - Value of the Item

Back to Index
Copyright © 2015 Smartcall

user_profile_functions_user_profile_edit

Description:
Edit an user profile on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
user_profile_id - ID of the Item to edit
user_profile_value - The new value

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall

user_profile_functions_user_profile_add

Description:
Add an user profile item on the ssystem
Sent Xml:
Sent Json:

Info:
api_action - The name of the function
user_profile_type_id - ID of the profile type to add
user_profile_value - The new value

Reply Xml:
Reply Json:

Info:
status - Status of the Call (True=Success/False=Faiure)
error_description - Error description if any
message_level - The message level, warning or critical

Back to Index
Copyright © 2015 Smartcall