All docs This doc
Skip to end of metadata
Go to start of metadata


Overview

The following operations allow you to work with members. Click an operation name to see details on how to use it.

For a sample proxy service that illustrates how to work with members, see Sample configuration

OperationDescription

addMember

Adds a member to a list.

listMembersRetrieves members for a list.

Operation details

This section provides further details on the operations related to members.

Adding a member to a list

The addMember operation adds a member to a list.

addMember
<wunderlist.addMember>
    <listId>{$ctx:listId}</listId>
    <userId>{$ctx:userId}</userId>
    <email>{$ctx:email}</email>
	<muted>{$ctx:muted}</muted>
</wunderlist.addMember>
Properties
  • listId: The ID of the list to assign the member to.
  • userId: The ID of the user to assign.
  • email: The e-mail of the user to assign.
  • muted: Indicates whether the user is muted or not.
   Sample request

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

Sample Request for addMember
{
    "apiUrl": "https://a.wunderlist.com",
    "accessToken": "75f42c8c00558ed675a97ce105c957cbcf8bf4c80e925b20df536326ae6a",
    "clientId": "1b5d64550ba2aa022821",
    "listId": "164231691",
    "userId": "16354164",
    "email": "sampathliyanage@sblsoft.com",
    "muted": true
}
Related Wunderlist documentation

https://developer.wunderlist.com/documentation/endpoints/membership

Retrieving members for a list

The listMembers operation retrieves members for a list.

listMembers
<wunderlist.listMembers>
</wunderlist.listMembers>
   Sample request

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

Sample Request for listMembers
{
    "apiUrl": "https://a.wunderlist.com",
    "accessToken": "75f42c8c00558ed675a97ce105c957cbcf8bf4c80e925b20df536326ae6a",
    "clientId": "1b5d64550ba2aa022821"
}
Related Wunderlist documentation

https://developer.wunderlist.com/documentation/endpoints/membership

  Sample configuration

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

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