Table Of Contents
Membership Request Resource Operations
Get Information about a Membership Request
Update a Membership Request
Membership Request Resource Operations
This chapter describes the Cisco WebEx Social API Membership Request resource operations. These operations let you retrieve and update information about a user request for membership in a Cisco WebEx Social community.
Table 6-1 provides a summary of the Membership Request resource operations. Each operation is described in detail in the section that is listed.
These sections provide this information:
•
Purpose—Brief explanation of the operation
•
Availability—Cisco WebEx Social releases that support the operation
•
Request—HTTP method and URI for the operation
•
Request Payload—Description of the request payload, if the operation requires one
•
Response—Description of the expected response when the operation executes
•
Examples—Sample requests and responses for the operation
Get Information about a Membership Request
Purpose
Retrieves information about the designated membership request.
Availability
Cisco WebEx Social 3.0 and later.
Request
HTTP Method
|
URI
|
GET
|
http://server[:port_number]/api/quad/rest/membershiprequests/ membership_request_id
|
where:
•
server—Host name or IP address of the Cisco WebEx Social server.
•
port_number—Port number on which the Cisco WebEx Social server listens for API requests. The default value is 80.
•
membership_request_id—Identifier of the membership request for which to retrieve information. For information about obtaining the identifier that you need, see the "Identifiers of Cisco WebEx Social Entities" section.
Request Payload
A request payload is not required.
Response
Standard response (see the "API Responses" section) with a response payload that can include one MembershipRequest resource (the "MembershipRequest Resource" section describes this resource). XML and JSON formats are supported.
XML Example
Request
GET http://webexsocialserver/api/quad/rest/membershiprequests/210747
Response
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:response xmlns:ns2="http://quad.cisco.com/ns/1.0/xml">
<statusCode>200</statusCode>
<startIndex>0</startIndex>
<itemsPerPage>1</itemsPerPage>
<totalResults>0</totalResults>
<filtered>false</filtered>
<approver xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<description>second</description>
<shortName>/dos</shortName>
<createDate>1319730564972</createDate>
<replyComments></replyComments>
<requestComments></requestComments>
<firstName>Pat</firstName>
<fullName>Pat Kim</fullName>
<screenName>patkim</screenName>
<resource>http://quad.cisco.com/schema/1.0/membershiprequest</resource>
JSON Example
Request
GET http://webexsocialserver/api/quad/rest/membershiprequests/210747
Response
Content-Type: application/json
"createDate": 1319730564972,
"resource": "http://quad.cisco.com/schema/1.0/membershiprequest",
Update a Membership Request
Purpose
Updates the designated membership request.
Availability
Cisco WebEx Social 3.0 and later.
Request
HTTP Method
|
URI
|
PUT
|
http://server[:port_number]/api/quad/rest/membershiprequests/ membership_request_id/
|
where:
•
server—Host name or IP address of the Cisco WebEx Social server.
•
port_number—Port number on which the Cisco WebEx Social server listens for API requests. The default value is 80.
•
membership_request_id—Identifier of the membership request. For information about obtaining the identifier that you need, see the "Identifiers of Cisco WebEx Social Entities" section.
Request Payload
The request payload includes fields from the Membership Request resource (Table 3-27 describes these fields:
Required Fields
|
Optional Fields
|
status
|
replyComments
|
Response
Standard response (see the "API Responses" section) with an HTTP header only.
XML Example
Request
PUT http://webexsocialserver/api/quad/rest/membershiprequests/210747
Content-Type: application/xml
<status>approved</status>
Response
JSON Example
Request
PUT http://webexsocialserver/api/quad/rest/membershiprequests/210747
Content-Type: application/json
Response