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/.
Working with Account in Teamwork
Overview
The following operations allow you to retrieve basic account information. Click an operation name to see details on how to use it.
For a sample proxy service that illustrates how to work with attachments, see Sample configuration.
Operation | Description |
---|---|
getAccountDetails | Returns the account details. |
getAuthenticateDetails | Returns the authentication details. |
Operation details
This section provides further details on the operations related to discussions.
Retrieving the account details
The getAccountDetails
operation returns the details about the Teamwork account.
<teamwork.getAccountDetails/>
Sample request
Following is a sample REST/JSON request that can be handled by the getAccountDetails
operation.
{ "apiUrl":"https://wso2test.teamwork.com/", "apiKey":"clark42ceiling" }
Related Teamwork documentation
http://developer.teamwork.com/account#get_account_detai
Retrieving the authentication details
The getAuthenticateDetails
operation returns some basic details of the current user being authenticated.
<teamwork.getAuthenticateDetails/>
Sample request
Following is a sample REST/JSON request that can be handled by the getAuthenticateDetails
operation.
{ "apiUrl":"https://wso2test.teamwork.com/", "apiKey":"clark42ceiling" }
Related Teamwork documentation
http://developer.teamwork.com/account#the_%27authenti
Sample configuration
Following is a sample proxy service that illustrates how to connect to Teamwork with the init operation and use the getAccountDetails
operation. The sample request for this proxy can be found in getAccountDetails sample request. You can use this sample as a template for using other operations in this category.
<?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="tw_getAccountDetails" transports="https http" startOnLoad="true" trace="disable"> <description/> <target> <inSequence> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <property name="apiKey" expression="json-eval($.apiKey)"/> <teamwork.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <apiKey>{$ctx:apiKey}</apiKey> </teamwork.init> <teamwork.getAccountDetails/> <respond/> </inSequence> <outSequence/> <faultSequence/> </target> </proxy>