Skip Headers
Oracle® Communications Service Broker Social Voice Communicator Implementation Guide
Release 6.1

Part Number E29461-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
PDF · Mobi · ePub

8 Social Voice Communicator API Reference

This chapter describes the Oracle Communications Service Broker Social Voice Communicator (SVC) subscriber management RESTful API, an application programming interface that creates, modifies, and deletes subscriber accounts and data for SVC services.

About the SVC API

This chapter lists RESTful operations for this API, including the parameters accepted and returned by each operation and examples of HTTP requests and responses.

All JSON body parameters for POST (create) operations are required unless indicated as optional. For PUT (modify) operations, the request only needs to contain the attributes to be changed.

See "About the SVC API Operations" for information on using individual operations in this API.

Note:

In the request and response message examples in this chapter, line breaks and spaces have been added to the JSON data in the body of the message to improve readability.

SVC Subscriber Account Management Operations

These operations create, update, or delete SVC subscriber accounts.


Create Subscriber Accounts

Creates SVC subscriber accounts for a set of users given their user names and their initial passwords.

An HTTP response 200 message is returned on success. If one member of the list cannot be created, no accounts are created and a 400 - Subscriber subscriber already exists error message is returned.

Authorization

Administrators

HTTP Method

POST

URI

/svc/subscribers

Request Body

The request body parameters accepted by the operation are arrays of:

Examples

Example 8-1 Request

POST /svc/subscribers HTTP/1.1
Accept: application/json
Authentication: user admin:D@3K4L@F$5S5OIKLS
Content-Length: ??
Content-Type: application/json
Host: ocsb host 
[{"username":"bob345","password":"password", true}  
{"username":"ming_yu","password":"password"}  
{"username":"George_Michaels","password":"password"}  
{"username":"555_813_8910","password":"password"}] 

Get Subscriber Accounts

Returns a list of all subscriber user names and URIs.

Authorization

Administrators

HTTP Method

GET

URI

/svc/subscribers

Request Body

Empty

Response Body

This operation returns a comma-separated list of user names and their access URIs.

Examples

Example 8-2 Request

GET http://10.182.98.78:9001/svc/subscribers HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-3 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 105
Server: Lab1(8.0.1.0)
[{"tom":"http://10.182.98.78:9001/svc/subscriber/tom"},
{"alice":"http://10.182.98.78:9001/svc/subscriber/alice"}]

Get Subscriber Account Details

Returns details for the subscriber account username with the request.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name

Request Body

Empty

Response Body

This operation returns these subscriber account details:

Examples

Example 8-4 Request

GET http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-5 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 105Server: Lab1(8.0.1.0)
{ "username":"bob",
"groups":"http://localhost:9001/svc/subscriber/bob/groups"
"one_numbers":"http://localhost:9001/svc/subscriber/bob/onenumber",
"contacts":"http://localhost:9001/svc/subscriber/bob/contacts",
"isPONPresented":true}

Modify a Subscriber Password or Social Circle One Number Preference

Changes a subscribers's password, SVC Social Circle one number preference, or both.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name

Request Body

This operation submits the following parameters:

Examples

Example 8-6 Request

PUT http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
{"password":"password", "isPONPresented":"true"}

Delete a Subscriber Account

Deletes a subscriber's SVC account.

Authorization

Administrator or subscriber.

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name

Request Body

Empty

Response Body

Empty

Examples

Example 8-7 Request

DELETE http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

SVC Social Circle Personal Contact Management Operations

These operations add, change, delete, or obtain information for SVC Social Circle personal contacts.


Create Personal Contacts in a Subscriber Account

Populates a subscriber's list of contacts from an array that you submit with this operation. Exactly one of the contacts must be given the default value of true making it the default contact.

Authorization

Administrator or subscriber.

HTTP Method

POST

URI

/svc/subscribers/Subscriber_Name/contacts

Request Body

This operation submits the following parameters:

Examples

Example 8-8 Request

POST http://10.182.98.78:9001/svc/subscribers/bob/contacts HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"mobile":"13811110000","default":true},{"home":"01082311212"},{"office":"alice@oracle.com"}]

Get a Subscriber's Personal Contact List

Returns all personal contact names and access URIs for a subscriber.

Authorization

Administrator or subscriber.

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/contacts

Request Body

Empty

Response Body

This operation returns an array contact names and their access URIs.

Examples

Example 8-9 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/contacts HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-10 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 137
Server: Jetty(8.0.1.0)
[{"office":"http://10.182.98.78:9001/svc/subscriber/alice/contact/office"}, {"home":"http://10.182.98.78:9001/svc/subscriber/alice/contact/home"}]

Delete All Personal Contacts

Deletes all members of a subscriber's SVC Social Circle personal contact list.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/contacts

Request Body

Empty

Response Body

Empty

Examples

Example 8-11 Request

DELETE http://10.182.98.78:9001/svc/subscriber/bob/contacts HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Get a Personal Contact and its Default Status

Retrieves a subscriber's SVC Social Circle personal contact information and whether the contact number is the default.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/contacts/Contact_name

Request Body

Empty

Response Body

This operation returns the following parameters:

Examples

Example 8-12 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/contact/home HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-13 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0)
[{"default":false,"number":"bob@oracle.com"}]

Modify a Personal Contact Details and/or Default Status

Modifies an SVC Social Circle personal contact default status or contact information.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/contact/Contact_name

Request Body

This operation submits the following parameters:

Examples

Example 8-14 Request

PUT http://10.182.98.78:9001/svc/subscriber/bob/contact/home HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
URI: http://10.182.100.43:9001/svc/subscriber/bob/contact/home
[{"default":true,"number":"222@129.148.75.22"}]

Delete a Personal Contact

Deletes an SVC Social Circle personal contact.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/contact/Contact_name

Request Body

This operation submits the Contact_Name parameter of the contact to delete.

Response Body

Empty

Examples

Example 8-15 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/contact/home HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-16 Response

HTTP/1.1 200 OK
[Edit] 2.2
URI: http://10.182.100.43:9001/svc/subscriber/alice/contact

SVC Social Circle Number and Contact Management Operations

These operations manage SVC Social Circle one numbers and contacts.


Create a Social Circle One Number

Adds an SVC Social Circle contact to a subscriber account. A subscriber can only have one personal number, but any number of group numbers.

Authorization

Administrator

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/onenumbers

Request Body

This operation submits the following parameters:

Response Body

Empty

Examples

Example 8-17 Request

POST http://10.182.98.78:9001/svc/subscriber/bob/onenumber HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"onenumber":"+123", "type":"personal"}, 
{"onenumber":"+456", "type":"group"}]

Get All Social Circle One Number Contacts for a Subscriber

Returns details for all SVC Social Circle contacts for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumbers

Request Body

Empty

Response Body

This operation returns an array of the following parameters for each contact:

Examples

Example 8-18 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/onenumbers HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-19 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)
[{"onenumber":"+123","onenumber_url":"http://localhost:9001/svc/subscriber/alice/onenumber/+123",
"onenumber_policy":[],"type":"personal"},{"onenumber":"+456",
"onenumber_url":"http://localhost:9001/svc/subscriber/alice/onenumber/+456",
"onenumber_policy":[],"type":"group"}] 

Delete All Social Circle Contacts

Deletes all SVC Social Circle contacts for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumbers

Request Body

Empty

Response Body

Empty

Examples

Example 8-20 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumbers HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Get Details for a Social Circle Contact

Returns details for an SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number

Request Body

Empty

Response Body

This operation returns the following parameters:

Examples

Example 8-21 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-22 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0Server: Jetty(8.0.1.0)
[{"onenumber":"123","type":"personal",
"onenumber_policy":[{"policy1": "http://localhost:9001/svc/subscriber/bob/onenumber/123/policy/policy1}]

Delete a Social Circle Contact

Deletes a SVC Social Circle contact for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number

Request Body

Empty

Response Body

Empty

Examples

Example 8-23 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumber/789 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Create a Policy Rule for a Social Circle Contact

Creates a behavior policy for an SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_name

Request Body

This operation accepts a policy rule array of these values:

Response Body

Empty

Examples

Example 8-24 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123/policy/policy21 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001 [{
 "froms": [],
 "sequencialCall": true,
 "sequentialRingInterval": 30,
 "toAddresses": [
  "tom@oracle.com",
  "0118613611046326"
 ],
 "schedule": {
   "startDate":{
     "year":2009,
     "month":10,
     "day":24
   },
   "startTime":{
     "hour":1,
     "minute":00,
     "second":0
   },
   "endTime":{
     "hour":13,
     "minute":0,
     "second":0
   },
   "recurrentPeriod":1,
   "timezone":+8,
   "until":{
     "year":2010,
     "month":12,
     "day":24
   }
 },
 "priority":10
}]

Get a Social Circle Policy Rule Details

Retrieves the details of an SVC Social Circle policy rule.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_name

Request Body

Empty

Response Body

The response includes a policy rule array. For more information on the array syntax, see the "Create a Social Circle One Number" operation.

Examples

Example 8-25 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/onenumber/789/policy/policy21 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-26 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)
[{"froms":    
[{"address":   
  "sip:1234@asfddd.com"}],   
 "sequencialCall": false,    "sequentialRingInterval": 30,    
"toAddresses": [     
"tom@oracle.com",      "0118613611046326" ] ,    
"schedule":{    "startDate":{    
"year":2009,    
"month":11,   
 "day":24}, 
"startTime":{   
 "hour":9,   
 "minute":30,     
 "second":0},
 "endTime":{     
 "hour":18,
 "minute":0,    
"second":0},    
"recurrentPeriod":2,   
 "timezone":-8,    
"until":{    
"year":2010,   
 "month":12,    
"day":24}},   
 "priority":10}]

Modify a Social Circle Policy Rule

Makes changes to an SVC Social Circle policy rule object.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_Name

Request Body

This operation submits a policy rule array that replaces a policy rule object. For more information on the policy object, see the "Create a Social Circle One Number" operation.

Examples

Example 8-27 Request

PUT http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123/policy/policy21 HTTP/1.1
Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001 [{
 "froms": [],
 "sequencialCall": true,
 "sequentialRingInterval": 30,
 "toAddresses": [
  "tom@oracle.com",
  "0118613611046326"
 ],
 "schedule": {
   "startDate":{
     "year":2009,
     "month":10,
     "day":24
   },
   "startTime":{
     "hour":1,
     "minute":00,
     "second":0
   },
   "endTime":{
     "hour":13,
     "minute":0,
     "second":0
   },
   "recurrentPeriod":1,
   "timezone":+8,
   "until":{
     "year":2010,
     "month":12,
     "day":24
   }
 },
 "priority":10
}]

Delete a Social Circle Policy Rule

Removes a policy from a subscriber's SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_Name

Request Body

Empty

Response Body

Empty

Examples

Example 8-28 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumber/789/policy/policy21 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

SVC Social Voice Private Group Management Operations

These operations administer SVC Social Voice personal groups.


Create a Private Group

Adds a SVC Social Voice private group to a subscriber's account.

Authorization

Administrator or subscriber

HTTP Method

POST or PUT

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name

Request Body

This operation submits the following parameters:

Response Body

Empty. Returns an HTTP 200 message on success and an HTTP 400 message if the group number does not exist.

Examples

Example 8-29 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"grp_onenumber":"5556700"}]

Delete a Private Group

Deletes a subscriber's SVC Social Voice private group and all of its members.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name

Request Body

Empty

Response Body

Empty. Returns an HTTP 200 message on success.

Examples

Example 8-30 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-31 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)

Add a Private Group Contact

Adds a SVC Social Voice contact name, number, and status to a private group. The grp_onenumber parameter is required to add the contact to a public group.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name/contact/Contact_Name

Request Body

This operation submits the following parameters:

Example 8-32 shows a sample grp_contact array.

Response Body

Empty

Examples

Example 8-32 Request

POST hhttp://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/bob HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"grp_contact":["bob", "3869", "false"]}]

Get All Private Group Memberships for a Subscriber

Returns the type, URI, and name of all private Social Voice groups that a subscriber is a member of.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/groups

Request Body

Empty

Response Body

This operation returns an array of these parameters for each of the group:

The array uses this syntax:

[{"groups":"[{groupType":" "public | private" "groupUrl":"URL","groupName":"Group_Name"}

Examples

Example 8-33 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/groups HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-34 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 104
Server: Jetty(8.0.1.0)
[{groups:": {"groupType""Private",
     "groupURL":"http://10.182.98.78:8080/svc/subscriber/sunzhen/group/default_   group",
"groupName":"default_group" }{"groupType""Private", 
"groupURL":"http://10.182.98.78:8080/svc/subscriber/sunzhen/group/public_group",
groupName":"public_group" }
"]}

Modify a Private Group's One Number

Changes a subscriber's SVC Social Voice private one number value.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/group/Group_name

Request Body

This operation submits any of the follows parameters:

Response Body

Empty. Returns an HTTP 200 message on success and an HTTP 400 message if the group number does not exist.

Examples

Example 8-35 Request

PUT http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"grp_onenumber":"family"]

Example 8-36 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)

Get All Contacts for a Private Group

Returns an array of a private group's SVC Social Voice contact group names, URIs, and types.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name/contacts

Request Body

Empty

Response Body

This operation returns an array of the group contact URIs. Example 8-38 shows an example array.

Examples

Example 8-37 Request

GET http://10.182.98.78:9001/svc/subscriber/cindy/group/friends/contacts HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-38 Response

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
[{  
 "contacts":
   [
       {
           "contactUrl": "http://239.255.255.255:8080/svc/subscriber/fred/group/publicGroup/contact/c1337353829328",
           "isactive": true,
           "name": "c1337353829328",
           "subscriberName": "alice",
           "number": "7777",
           "type": 3
       },
       {
           "contactUrl": "http://239.255.255.255:8080/svc/subscriber/fred/group/publicGroup/contact/c1337352487076",
           "isactive": false,
           "name": "c1337352487076",
           "subscriberName": "wangqian",
           "number": "5554321178",
           "type": 2
       }
   ]
} 
]

Get Details for a Private Group Contact

Returns an array with the SVC Social Voice private group contact name, number, and active/inactive status.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name/contact/Contact_Name

Request Body

Empty

Response Body

This operation submits the following parameters:

Example 8-40 shows a sample grp_contact array.

Examples

Example 8-39 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/henry HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-40 Response

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
[{
"contacts":
[{"grp_contact":"http://239.255.255.255:8080/svc/subscriber/fred/group/publicGroup/contact/c1337353829328","isactive": 
true,"name":"c1337353839327","subscriberName":"alice",number": "7777","type": 3},{
"grp_contact": 
"http://239.255.255.255:8080/svc/subscriber/fred/group/publicGroup/contact/c1337352487076",
"isactive": false,"name": "c1337352487076",subscriberName": "wangqian",number": "wangqian@mydomain.com","type": 2}]} ]

Get Private Group Details

Retrieves the name, SVC Social Voice group number, and/or URI of a subscriber's Social Voice contact private group.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name

Request Body

This operation submits the follows group parameters:

Response Body

Empty

Examples

Example 8-41 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"grp_onenumber":"123456", "grp_name":"friends","grp_contacts":"http://10.182.98.78:9001/svc/subscriber/cindy/group/friends/contacts"}]

Modify a Private Group Contact

Replaces a SVC Social Voice private contact group URI with a new one. All changes in the URI are accepted.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/group/Private_Group_Name/contact/Contact_Name

Request Body

This operation submits the following parameters:

Example 8-42 shows a sample grp_contactarray.

Examples

Example 8-42 Request

PUT
http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/fred HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{"grp_contact":["fred", "3869", "false"]}]

Delete a Private Group Contact

Removes a contact from a subscriber's SVC Social Voice private group.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contact/Contact_name

Request Body

Empty

Response Body

Empty

Examples

Example 8-43 Request

DELETE
http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/cindy HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

SVC Social Voice Public Group Management Operations

These operations administer SVC Social Voice public groups.


Create a Public Group

Adds a SVC Social Voice group to a subscriber's account. If just the grp_onenumber parameter is used, a private group for the subscriber is created. If both grp_onenumber and a group_type of public are sent, a public group is created.

Authorization

Administrator or subscriber

HTTP Method

POST or PUT

URI

/svc/subscriber/Subscriber_Name/group/Public_Group_Name

Request Body

This operation submits the following parameters:

Response Body

Empty. Returns an HTTP 200 message on success and an HTTP 400 message if the group number does not exist.

Examples

Example 8-44 Request

POST
http://10.182.98.78:9001/svc/subscriber/alice/group/fballteam
HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"grp_onenumber":"8888","group_type":"Public"}]

Delete a Public Group

Deletes a Social Voice public group. Only empty groups can be deleted. Use the "Delete a Public Group Contact" operation to remove the public group members first, then use this operation to delete the public group itself.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Public_Group_Name

Request Body

Empty.

Response Body

Empty

Examples

Example 8-45 Request

POST
http://10.182.98.78:9001/svc/subscriber/alice/group/bballteam
HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Add a Public Group Member

Adds a member to a Social Voice public group. The added entity can be one of these:

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/group/Public_Group_name/contact/newcontact/Group_Owner_Name

Request Body - Array

This operation submits the following parameters:

Where:

personal_onenumber: (String) The identifier of the subscriber to add to the group.

is_active: (Boolean) Specified whether the member is active.

Response Body

Empty

Examples

Example 8-46 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/group/bballteam/contact/newcontact/sunzhen HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
["grp_contact":[{"personal_onenumber":"4155551233","false"]]

Delete a Public Group Contact

Deletes a member of a public group.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Public_Group_name/contact/newcontact/Public_Group_Owner.

Request Body

Empty

Response Body

Empty

Examples

Example 8-47 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/c1337181093/alice HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Get All Public Groups for a Subscriber

Returns the type, URI, and name of all Social Voice groups that a subscriber owns.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/inpublic/groups

Request Body

Empty

Response Body

This operation returns an array of these parameters for each of the group:

The array uses this syntax:

[{"groups":"[{groupType":" "public" "groupUrl":"URL","groupName":"Group_Name"}]

Examples

Example 8-48 Request

GET http://239.255.255.255:8080/svc/subscriber/sunzhen/public/groups HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-49 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 104
Server: Jetty(8.0.1.0)
{"groups":[
{"groupType":"Public","groupUrl":"http://10.182.98.78:8080/svc/subscriber/bob/group/default_group","groupName":"default_group"},
{"groupType":"Public","groupUrl":"http://10.182.98.78:8080/svc/subscriber/bob/group/privateGroup","groupName":"privateGroup"}]}

Get All Public Group Memberships for a Subscriber

Retrieves a list of all the public groups that a subscriber is a member of.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/inpublic/groups

Request Body

Empty

Response Body

An array of the groups that the subscriber is a member of, with these fields:

Examples

Example 8-50 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/inpublic/groups HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-51 Return

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
{"groups":[{"ownerName":"alice","groupName":"team2"}] [{"ownerName":"alice","groupName":"team3}]]

Get All Contacts for a Public Group

Retrieves a list of all members of a public group.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Public_Group_Name/contacts/Group_Owner

Request Body

Empty

Response Body

This operation returns an array of member with these parameters:

Examples

Example 8-52 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/group/team1/contacts/cindy HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-53 Return

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
[{"contacts":{"isactive": true,"name": "c1337353829328","subscriberName": "alice","number": "7777","type": 3},
{"isactive": false,"name": "team1","subscriberName": "wangqian","number": "wangqian@open-ims.test","type": 1}]}

SVC Click-to-Dial Make Call Operation

This operation makes a Click-to-Dial call.


Make a Click-to-dial Call

Connects the subscriber's SVC Social Circle default contact number on a website or email server to a callee on a SIP or SS7 telecom network.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/makecall?to=callee

Request Body

Empty

Response Body

Empty

Examples

Example 8-54 Request

GET http://10.182.98.78:9001/svc/subscriber/george/makecall?to=5551234567 HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

SVC Social Voicemail Access Management Operations

These operations manage SVC Social Voicemail access.


Activate Social Voicemail for Subscribers

Activates SVC Social Voicemail features for existing subscribers.You submit an array of subscriber user names and passwords with the request to activate accounts for those subscribers. If any invalid or pre-existing subscribers are submitted, the entire operation fails and none of the subscribers are granted access to SVC Social Voicemail.

If a pre-existing voicemail box is sent with the request, an HTTP_BAD_REQUEST (400) message is returned.

Authorization

Administrator

HTTP Method

POST

URI

/svc/admin/vmboxes

Request Body

This submits an array of user name/password combinations. Voice-mail is activated for all of the users in the array.

Examples - check these

Example 8-55 Request

POST http://10.182.98.78:9001/svc/admin/vmboxes HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001{"username":"bob345","onenumber":"123456"},
[{"username":"ming_yu","onenumber","5555551234"},  
{"username":"George_Michaels","onenumber":"4155550999"}, 
{"username":"555_813_8910","onenumber":"2135550444"}]

Activate/Deactivate Social Voicemail Access

Changes SVC Social Voicemail access for a subscriber. You submit the subscriber's user name and SVC Social Circle one number and an isActive setting of true or false to activate or deactivate the subscriber's account. No resources or data are removed when the account is deactivated.

Use this operation to deactivate a subscriber's SVC Social Voicemail account temporarily.

To delete a subscriber's account resources and data permanently, see "Delete Social Voicemail Access and Data for a Social Circle".

Authorization

Administrator

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/admin

Request Body

This operation submits the following parameters:

Response Body

Empty

Examples

Example 8-56 Request

PUT https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/123456/vmbox/admin HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{ "isAcitve":true }]

Delete Social Voicemail Access and Data for a Social Circle

Deactivates a subscribers's SVC Social Voicemail access, and deletes all SVC Social Voicemail data and recordings associated with that subscriber. Use this operation when you do not expect the subscriber to ever need the SVC Social Voicemail account or data ever again.

To deactivate a subscriber's account without removing and data (temporary deactivation), see "Activate/Deactivate Social Voicemail Access".

Authorization

Administrator

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/admin

Request Body

Empty

Response Body

Empty

Examples

Example 8-57 Request

DELETE https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/123456/vmbox/admin HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Get All Social Voicemail Subscriber Accounts

Returns a list of all SVC Social Voicemail accounts, and indicates whether those accounts are active or inactive. The response includes each user's user name, SVC Social Circle one number, the URI of their SVC Social Voicemail box, and whether the voice permission is active or inactive.

Authorization

Administrator

HTTP Method

GET

URI

/svc/admin/vmboxes

Request Body

Empty

Response Body

The response includes the following parameters for each subscriber:

Examples

Example 8-58 Request

GET http://10.182.98.78:9001/svc/admin/vmboxes HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-59 Response

HTTP/1.1 200 OK
Content-Type: application/json
Server: Jetty(8.0.1.0)
Content-Length: 137
[{"subscriber":"bob345","onenumber":"123456","address":"/svc/vmsubscriber/bob345/onehumber/123456/vmbox","isActive": true},  
{"subscriber":"ming","onenumber":"5555551234","address":"/svc/vmsubscriber/ming/onenumber/5555551234/vmbox","isActive": true},  
{"subscriber":"George_Michaels","onenumber":"4155550999","address":"/svc/vmsubscriber/George_Michaels/onenumber/4155550999/vmbox","isActive": true},  
{"subscriber":"555_813_8910","onenumber":"2135550444","address":"/svc/vmsubscriber/555_813_8910/onenumber/2135550444/vmbox","isActive": true}]

Get Social Voicemail Settings

Get these SVC Social Voicemail settings for a subscriber:

Authorization

Administrator or subscriber.

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox

Request Body

Empty

Response Body

The request body parameters accepted by the operation include:

Examples

Example 8-60 Request

PUT https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/1234567/vmbox HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-61 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"enableVoiceMail":true, "voiceMessageExpireDays":60, "maximumInboundMessagesInMailbox":20,  "isPasswordEnable":true} ]
"maximumOutboundMessagesInMailbox":20, "maximumPhoneMessageDuration":300, "notifyEmailAddress":"bob@bob.com","greeting" : 
"/svc/vmsubscriber/alice/onenumber/123321/vmbox/greeting" , "voiceName":"/svc/vmsubscriber/bob/onenumber/123321/vmbox/name",

Modify Social Voicemail Settings

Change any of these SVC Social Voicemail settings for a subscriber:

Authorization

Administrator or subscriber.

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox

Request Body

The request body parameters accepted by the operation include:

Response Body

The response body includes a success status for each of the changed settings.

Examples

Example 8-62 Request

PUT https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/1234567/vmbox HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001 
[{"enableVoiceMail":true, "voiceMessageExpireDays":60, "maximumInboundMessagesInMailbox":20, "maximumOutboundMessagesInMailbox":20, "maximumPhoneMessageDuration":300, "notifyEmailAddress":"bob@bob.com","greeting" : 
"/svc/vmsubscriber/alice/onenumber/123321/vmbox/greeting" , "voiceName":"/svc/vmsubscriber/bob/onenumber/123321/vmbox/name", "isPasswordEnable":true} ]

Example 8-63 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0
[{"enableVoiceMail":true, "voiceMessageExpireDays":success, "maximumInboundMessagesInMailbox":"success", "maximumOutboundMessagesInMailbox":"success", "maximumPhoneMessageDuration":"success", 
"notifyEmailAddress":"success","greeting" : "success" , "voiceName":"success", "isPasswordEnable":"success"} ]

SVC Social Voicemail Message Management Operations

These operations manage SVC Social Voicemail messages.


Delete a Social Voicemail Personal Greeting Message

Cancels a subscriber's personal greeting message by deleting their personalGreeting.wav file. The default greeting file is used instead.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

Empty

Response Body

Empty

Examples

Example 8-64 Request

DELETE https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Delete a Personal Voice Name Message

Removes a subscriber's personal greeting message.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

Empty

Response Body

Empty

Examples

Example 8-65 Request

DELETE https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/name HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Modify Social Voicemail Message Public/Private Setting

Sets a SVC Social Voicemail messages as either publicly or privately accessible.

Authorization

Administrators or subscribers

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

This operation submits the following parameter:

Response Body

Empty

Examples

Example 8-66 Request

PUT https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"ispublic":true}]

Deactivate a Social Voicemail Name Message

Deactivates a subscriber's SVC Social Voicemail name message.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

Empty

Examples

Example 8-67 Request

DELETE https://10.182.98.78:9001/vmsubscriber/bob345/onenumber/123456/vmbox/name HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Delete a Social Voicemail Message

Deletes a SVC Social Voicemail message.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

Empty

Response Body

Empty

Examples

Example 8-68 Request

DELETE https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Get a List of Social Voicemail Messages

Returns a list of all the SVC Social Voicemail message names and types for a subscriber.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/messages

Request Body

Empty

Response Body

On success the response includes an HTTP 200 OK message and an array of entries with the syntax: messageName : type. Where type is one of receivedMessage or sentMessage.

Examples

Example 8-69 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/messages HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-70 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"messageName":""sample_123124","type":"ReceivedMessage"}, {"messageName":"fridaymessage_
123124","type":"SentMessage"},{"messageName":""20100102063002_123124","type":"ReceivedMessage"}, {"messageName":""sample_greeting","type":"SentMessage"}] 

Get a Social Voicemail Message File

Gets a SVC Social Voicemail message WAV file.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name/file

Request Body

Empty

Response Body

Empty. On success the response includes an HTTP 200 OK message and the bit stream of the WAV file requested.

Examples

Example 8-71 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-72 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
Host: 10.182.98.78:9001
Content-Length: 231837
Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
Content-Length: 231837
------=_Part_0_20761102.1296024147640
Content-Type: audio/x-wav; name=test.wav
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="message1.wav"; filename="name.wav"
(binary data)

Get Details for a Social Voicemail Message

Returns details about a SVC Social Voicemail message, including:

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

Empty

Response Body

The response includes the following parameters:

Examples

Example 8-73 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-74 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"type":"SentMessage","time":"201101201333","callerName":"john","callerNum":"3231","fileName":"abc.wav", "fileLocation":"/21/32/3231/abc.wav","isPublic":"true"} ]

Get Details for All of a Subscriber's Voice Mail Messages

Returns the caller name and number, message name, creation time, and message file location of all voice mail messages in a subscriber's voice mail box.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/detail/messages

Request Body

Empty

Response Body

The response includes an array of voice mail messages, one per line with these parameters:

Examples

Example 8-75 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/detail/messages
HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-76 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"callerNumber":"alice@open-ims.test","createTime":1334134003000, "fileLocation":"./2/27/20122012/inbound/20120411164643_20122012.wav", "callerName":"alice","type":"ReceivedMessage","messageName":"20120411164643_20122012"}, 
{"callerNumber":"tel:20122012","createTime":1334134216000, "fileLocation":"./2/27/20122012/outbound/1334134216468.wav", "callerName":"bob","type":"SentMessage","messageName":"20122012_1334134216468"}]

Get Personal Greeting Message Settings

Retrieves the location and status of a subscriber's voice greeting message.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

Empty

Response Body

This operations returns the following parameters:

Examples

Example 8-77 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-78 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"isPersonalActive":"true","fileLocation":"123456/vmbox/greeting" }]

Get Social Voicemail Message Settings

Returns these SVC Social Voicemail settings for a subscriber:

Authorization

Administrator or subscriber.

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox

Request Body

The request body parameters accepted by the operation include:

Response Body

The response includes the same parameters as the request, with a success or failure value in each parameter field to indicate whether the field was successfully changed.

Examples

Example 8-79 Request

GET https://10.182.98.78:9001/vmsubscriber/bob345/onenumber/123456/vmbox HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
[{"enableVoiceMail":true, "password":"password", "voiceMessageExpireDays":60, "maximumInboundMessagesInMailbox":20, "maximumOutboundMessagesInMailbox":20, "maximumPhoneMessageDuration":300, "notifyEmailAddress":"bob345@bob.com", } ]

Example 8-80 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[ {"enableVoiceMail":"success","maximumInboundMessagesInMailbox":"success", "maximumInboundMessagesInMailbox":"success",maximumPhoneMessageDuration":"success",
"notifyEmailAddress": "success","voiceMessageExpireDays":"success","password":"failure: password should be six digit numeric type. "} ] 

Get Social Voicemail Name Message Settings

Retrieves the location and status (active/inactive) of a subscriber's SVC Social Voicemail name message.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

Empty

Response Body

This operations returns the following parameters:

Examples

Example 8-81 Request

GET https://ocsb_hostport/vmsubscriber/bob345/onenumber/123456/vmbox/name HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-82 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0
[{"isPersonalActive":"true","fileLocation":"123456/vmbox/name" }]

Send a Social Voicemail Message to Other Subscribers

Sends a message from one SVC Social Voicemail subscriber to another. Used by "Create sentMessage Voice Message" to sent messages to other subscribers.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name/sendmessage

Request Body

This operation submits the following parameters:

Response Body

This operation returns the following parameters:

Examples

Example 8-83 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/test.wav/sendmessage HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
{"receiverOneNumbers": ["122345", "3211"]}

Example 8-84 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0)
[ {"receiverOneNumbers": ["122345", "3211"]} ]

Create Social Voicemail Greeting Message

Sets (records) the subscriber's SVC Social Voicemail service greeting as personalgreeting.wav in the subscriber's greeting folder.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

This operation does not submit any parameters, but it does require the voice-mail greeting message WAV file as an attachment.

Response Body

Empty

Examples

Example 8-85 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
Content-Length: 231837------=_Part_0_20761102.1296024147640
Content-Type: audio/x-wav; name=greeting.wav
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="greeting.wav"; filename="greeting.wav"(binary data)

Create Social Voicemail Box Name Message

Sets a WAV file as the subscriber's SVC Social Voicemail service greeting message. The WAV file is renamed to name.wav and placed in the subscriber's /onenumber/One_Number/vmbox/name directory.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

This operation does not submit any parameters, but the HTTP request must include the WAV file to use as a voice name message as an attachment.

Examples

Example 8-86 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/name HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
Content-Length: 231837------=_Part_0_20761102.1296024147640
Content-Type: audio/x-wav; name=name.wav
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="name.wav"; filename="name.wav"(binary data)

Create sentMessage Voice Message

Uploads a WAV message file. This operation appends the SVC Social Circle one number prefix to the filename root to create a unique name. For example, if the subscriber with an SVC Social Circle one number prefix of 123 uploads a files called vm34.wav the uploaded file is named vm34_123.wav.

After uploading, use:

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message

Request Body

This operation does not submit any parameters, but the HTTP request must include the WAV file to use as a voice-mail message as an attachment.

Response Body

This operation returns the following parameters:

Examples

Example 8-87 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001
Content-Length: 231837------=_Part_0_20761102.1296024147640
Content-Type: audio/x-wav; name=test.wav
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="message1.wav"; filename="name.wav"(binary data)

Example 8-88 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43Server: Jetty(8.0.1.0)
[{"messageName":"test_321"}]

Get a List of the Public Social Voicemail Messages in a Mailbox

Retrieves a list of the publicly-accessible SVC Social Voicemail messages in a subscriber's mailbox.

Authorization

This operation does not perform authorization checking.

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/messages/public

Request Body

Empty

Response Body

On success the response includes an HTTP 200 OK message, and an array of message names and file locations of each voice-mail message file with an isPublic parameter value of true.

Examples

Example 8-89 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/messages/public HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.182.98.78:9001

Example 8-90 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43
Server: Jetty(8.0.1.0 
[{"messageName":"fridaymessage","fileLocation":"/21/32/3231/friday.wav"},{"messageName":"0100102063000_123124","fileLocation":"/21/32/3231/20100102063000_123124.wav"}]