Solutions

Client auto login API for client portal

Triveni Kapse Dec-22nd, 2015 17:31 0 0

This API is used to fetch client salt key of particular client.
Please check example usage of Vision Helpdesk API

Module: client
Operation: get_client_details


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

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

$postfields["vis_domain"] = “visiononlinedemo.com”;
// domain for which you wish to get details of client

$postfields["vis_email"] = “visions.helpdesk@gmail.com”;
// email id of client


Below is API URL example for Get Client salt key

JSON: http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=client &vis_operation=get_client_details &vis_domain=iamdemo.com &vis_email=visions.helpdesk@gmail.com &vis_encode=json XML: http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=client &vis_operation=get_client_details &vis_domain=iamdemo.com &vis_email=visions.helpdesk@gmail.com 

OR use "access token" to Get Client salt key

JSON: http://visiononlinedemo.com/support/api/index.php? &vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= &vis_module=client &vis_operation=get_client_details &vis_domain=iamdemo.com &vis_email=visions.helpdesk@gmail.com &vis_encode=json XML: http://visiononlinedemo.com/support/api/index.php? &vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= &vis_module=client &vis_operation=get_client_details &vis_domain=iamdemo.com &vis_email=visions.helpdesk@gmail.com 

Using above API URL, will get client salt key (like "c74ccb804e41e002299eeb02b9110803"), use same key for auto login of client portal

Below is Auto login URL example for client portal

http://visiononlinedemo.com/index.php?vis_email=visions.helpdesk@gmail.com&vis_salt=c74ccb804e41e002299eeb02b9110803

Vote

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