Back to Collection Items
func chilkatTest() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
let http = CkoHttp()!
var success: Bool
http.basicAuth = true
http.login = "{{auth_id}}"
http.password = "password"
var resp: CkoHttpResponse? = http.quickRequest("DELETE", url: "https://api.plivo.com/v1/Account/<auth_id>/Conference/{conference_name}/Member/{member_id}/Mute/")
if http.lastMethodSuccess == false {
print("\(http.lastErrorText!)")
return
}
var respStatusCode: Int = resp!.statusCode.intValue
print("Response Status Code = \(respStatusCode)")
if respStatusCode != 204 {
print("Response Header:")
print("\(resp!.header!)")
print("Response Body:")
print("\(resp!.bodyStr!)")
print("Failed.")
resp = nil
return
}
resp = nil
print("Success.")
}
Curl Command
curl -X DELETE
-u '{{auth_id}}:password'
https://api.plivo.com/v1/Account/<auth_id>/Conference/{conference_name}/Member/{member_id}/Mute/
Postman Collection Item JSON
{
"name": "Unmute Member",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "https://api.plivo.com/v1/Account/{{auth_id}}/Conference/{conference_name}/Member/{member_id}/Mute/",
"protocol": "https",
"host": [
"api",
"plivo",
"com"
],
"path": [
"v1",
"Account",
"{{auth_id}}",
"Conference",
"{conference_name}",
"Member",
"{member_id}",
"Mute",
""
]
},
"description": "This API lets you unmute members which have been muted by the Mute Member API.\n\nMore information can be found [here](https://www.plivo.com/docs/voice/api/conference/member#unmute-a-member)"
},
"response": [
{
"name": "Unmute Member",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "https://api.plivo.com/v1/Account/{{auth_id}}/Conference/{conference_name}/Member/{member_id}/Mute/",
"protocol": "https",
"host": [
"api",
"plivo",
"com"
],
"path": [
"v1",
"Account",
"{{auth_id}}",
"Conference",
"{conference_name}",
"Member",
"{member_id}",
"Mute",
""
]
}
},
"code": 204,
"_postman_previewlanguage": "Text",
"header": [
],
"cookie": [
],
"body": ""
}
]
}