POST (Header:DELETE) api.ashx/v2/users/{requestorid}/friends/{requesteeid}.{json|xml}
DELETE a friendship for a user by user ids.
Scopes
Users › Modify Friends users.friends.modify
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
RequesteeId | int? | Either the RequesteeId or the RequesteeName is required. | Optional | |||
RequesteeName | string | Either the RequesteeId or the RequesteeName is required. | Optional | |||
RequestorId | int? | Either the RequestorId or the RequestorName is required. | Optional | |||
RequestorName | string | Either the RequestorId or the RequestorName is required. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.del({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/{requestorid}/friends/{requesteeid}.json', data: { 'requestorid': '6', 'requesteeid': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>
POST (Header:DELETE) api.ashx/v2/users/{requestorname}/friends/{requesteename}.{json|xml}
DELETE a friendship for a user by usernames.
Scopes
Users › Modify Friends users.friends.modify
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
RequesteeId | int? | Either the RequesteeId or the RequesteeName is required. | Optional | |||
RequesteeName | string | Either the RequesteeId or the RequesteeName is required. | Optional | |||
RequestorId | int? | Either the RequestorId or the RequestorName is required. | Optional | |||
RequestorName | string | Either the RequestorId or the RequestorName is required. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.del({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/{requestorname}/friends/{requesteename}.json', data: { 'requestorname': 'requestorname', 'requesteename': 'requesteename' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>