Solutions

Add Contact API

Sheena Sen May-29th, 2012 12:44 1 0

This API is used to Add Contact

A contact is nothing but a sub contact of a client - contact can post new tickets and view existing tickets. The access rights of a contact are decided by parent client.

Please check example usage of Vision Helpdesk API

Operation : add_client
Module : client

$postfields["vis_module"] = "client";
// This is the module under which you wish to perform operation

$postfields["vis_operation"] = "add_client";
// This is the operation field

$postfields["vis_email"] = "test3.vhd@gmail.com";
// This is the email address of client

$postfields["vis_firstname"] = "Testthree";
// This is the first name of client

$postfields["vis_domain"] = 1;
// This is the domain id under which you wish to add this client

$postfields["vis_client_id"] =1;
// Parent client id

Below four fields decides access rights of a contact: To provide access set 1 otherwise no field required

$postfields["vis_sent_mail"] = 1;
$postfields["vis_view_tickets"] = 1;
$postfields["vis_openticket"] = 1;
$postfields["vis_billingacess"] = 1;
$postfields["vis_replyticket"] = 1;

[Optional]

$postfields["vis_lastname"] = "Vhd";
// This is the last name of client

$postfields["vis_username"] = "testing";

Below is example API usage for Add contact

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=client
&vis_operation=add_client
&vis_client_id=9
&vis_domain=1
&group_id=1
&vis_firstname=testing
&vis_lastname=
&vis_email=testing@gmail.com
&vis_username=testing
&vis_auto_pass=1
&vis_sent_mail=1
&vis_openticket=1


OR use "access token" to Add contact

http://visiononlinedemo.com/support/api/index.php?
vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0=
&vis_module=client
&vis_operation=add_client
&vis_client_id=9
&vis_domain=1
&group_id=1
&vis_firstname=testing
&vis_lastname=
&vis_email=testing@gmail.com
&vis_username=testing
&vis_auto_pass=1
&vis_sent_mail=1
&vis_openticket=1

Vote

Was this article helpful?
1 out of 1 found this helpful