This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The getUser operation retrieves a user by ID.

getUser
<clio.getUser>
	<userId>{$ctx:userId}</userId>
</clio.getUser>
Properties
  • userId: The ID of the user whose details should be retrieved.
Sample request

Following is a sample REST/JSON request that can be handled by the getUser operation.

Sample Request for getUser
{
    "accessToken": "",
    "userId": "",
    "apiUrl": "https://app.goclio.com"
}
Related Clio documentation

http://api-docs.clio.com/v2/index.html#get-a-user

Sample configuration

Following is a sample proxy service that illustrates how to connect to Clio with the init operation and use the getUser operation. The sample request for this proxy can be found in the getUser sample request.

Sample Proxy
<?xml version="1.0" encoding="UTF-8"?>
<proxy name="clio_getUser" startOnLoad="true" statistics="disable" trace="disable" transports="https,http" xmlns="http://ws.apache.org/ns/synapse">
   <target>
      <inSequence>
         <property name="apiUrl" expression="json-eval($.apiUrl)"/>
         <property name="accessToken" expression="json-eval($.accessToken)"/>
         <property name="userId" expression="json-eval($.userId)"/>
         <clio.init>
            <apiUrl>{$ctx:apiUrl}</apiUrl>
            <accessToken>{$ctx:accessToken}</accessToken>
         </clio.init>
         <clio.getUser>
            <userId>{$ctx:userId}</userId>
         </clio.getUser>
         <respond/>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>
  • No labels