User Details Export

User Details Export

When 3rd party applications are being used, there will be times when JET user account details is required.

APIs deal with the record level data but not user account.

A simple call to the function below would be able to retrieve the details required.

Getting username
				
					https://demo.jetworkflow.com/ims/jetapi.php?method=getUserDetails&project=testsite&skey=123456789
				
			
  • project — this indicates which site.
  • skey — session key generated from an existing login.

In this example, what we need is the site ID and also the session key.

Getting skey

Select URL Link while editing form settings.

Make sure to tick “Append JET skey and project on url”

In the Form Url field, enter the website url where you need to export the user details to.

In the example above, the url used is our own test url for this.

All you need to do is to go to your main forms page and click on the form created above.

				
					https://demo.jetworkflow.com/ims/test.php?skey=123456789&project=testsite
				
			

This will result in a new tab being open with a similar url to the above.

				
					<?php
$url = 'https://demo.jetworkflow.com/ims/jetapi.php?method=getUserDetails&project='.$_GET['project'].'&skey='.$_GET['skey'];
echo 'URL: '.$url.'<br>';
?>
				
			

In the target url, it will need to call back with the method getUserDetails to get the information wanted.

You can replace https://demo.jetworkflow.com/ims/ with the url of where your JET Workflow is installed at.

				
					{"status":"success","message":"success","username":"testuser","id_user":"1"}
				
			

You will get the above return message and you can now retrieve the username from here.

 

**Take note that you will need to use your own methods to capture the required data based on how your own website is created.

**The session key will only last 2 hours from the time of last generation.

Suggest Edit
×

Hello!

Click one of our representatives below to chat on WhatsApp or send an email to sales@jetworkflow.com

× How can I help you?