Cisco Cisco Meeting Server 2000 开发者指南

下载
页码 147
Cisco Meeting Server Release 2.0 : API Reference Guide
26
5 Example Requests and Responses for Specific
Methods
5.1 Retrieval of Current Active Calls
As described in
retrieval methods using GET involve no body content posted by the
retriever. If the request is valid, the Meeting Server returns XML response data.
Request:
GET /api/v1/calls HTTP/1.1\r\n
Host: test.example.com\r\n
User-Agent: API console\r\n
Connection: keep-alive\r\n
Authorization: Basic Ym9iOmJ1aWxkZXI=\r\n
\r\n
Response:
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 187
Connection: close
\r\n
<?xml version="1.0"?>
<calls total="1">
<call id="527089d6-6581-4331-8417-971c05c9e274">
<name>Sales coSpace</name>
<coSpace>2dcf2b7a-3410-4066-b638-46273698d469</coSpace>
</call>
</calls>
5.2 Creating a New Call Leg (SIP dial out to 10.1.144.129)
As described above, any parameters needed for the creation method (in this case, the address
of the remote party), need to be supplied by the issuer as form data. If the request is successful,
details about the new object are returned by the Meeting Server in the “Location” header field.
Request:
POST /api/v1/calls/527089d6-6581-4331-8417-971c05c9e274/callLegs
HTTP/1.1\r\n
Host: test.example.com\r\n
User-Agent: API console\r\n
Connection: keep-alive\r\n
Authorization: Basic Ym9iOmJ1aWxkZXI=\r\n
Content-Type: application/x-www-form-urlencoded\r\n
Content-Length: 24\r\n
\r\n
5   Example Requests and Responses for Specific Methods