Web service API

How to use PageSeeder's Web service API

list member memberships

/members/{member}/memberships [GET]

com.pageseeder.membership.ListMembershipsForMember

Description

Get the memberships for the member

Returns the list of group memberships for the given member.

Parameters

NameDescriptionRequiredTypeDefault value
archived Whether to return archived projects/groups only no boolean false
subgroups If subgroups should be included in the response no boolean true

Permission

Only the member herself or an administrator can invoke this service.

Response

The XML returned is:

<memberships>
  <member id="[member id]"
          firstname="[first name]"
          surname="[surname]"
          username="[username]"
          flags="[flags]"
          status="[activated|unactivated]">
    <fullname>[full name]</fullname>
  </member>
  <membership id="[membership id]"
              email-listed="[true|false]"
              notification="[notification]"
              flags="[flags]"
              status="normal"
              role="[role]"
             [subgroups="[subgroups]"]
             [created="[date]"]>
     <group|project id="[group id]"
                    name="[group name]"
                    description="[description]"
                    owner="[owner]"
                   [relatedurl="[url]"] />
      <details>
        <field position="1"
               name="[field name]"
               editable="[true|false]"
              [title="[field title]"]
              [type="[field type]"]>[field value]</field>
        ...
      </details>
   </membership>
   <membership status="invited" ...> ... </membership>
   ...
</memberships>

When the archived = "true", the return is:

<memberships>
  <member id="[member id]"
          firstname="[first name]"
          surname="[surname]"
          username="[username]"
          flags="[flags]"
          status="[activated|unactivated]">
      <fullname>[full name]</fullname>
  </member>
</memberships>

Error Handling

CodeCause / Description
0x0204The Member was not found.

Created on , last edited on