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 information relating to a specific user in your account.

getUser
<sirportly.getUser>
	<user>{$ctx:user}</user>
</sirportly.getUser>
Properties
  • user: Required - The user ID, username or e-mail address.
Sample request

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

Sample Request for getUser
{
	"apiUrl":"https://anusoft.sirportly.com",
	"apiToken":"007898a0-d9e7-3d5a-f6e2-c1a7d3853555",
	"apiSecret":"rrcxnqny86nrpxec0riiyufd4mylt45kr2l2bltsb435u5y68i",
	"user" : "chamath@gmail.com"
}
Related Sirportly documentation

https://sirportly.com/docs/api-specification/users/get-user-properties

Sample configuration

Following is a sample proxy service that illustrates how to connect to Sirportly with the init operation and use the getUser operation. The sample request for this proxy can be found in the getUser sample request. You can use this sample as a template for using other operations in this category.

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