fumaggo/ezmollom — Issue #1: Delete whitlist entry
Author: fumaggo
Created: 2012-01-17 18:05:57+00:00
State: open

It appears to be impossible to delete whitelist entries using the REST api. Deleting a whitelist item returns a 200 code, but the item appears not to have been deleted from the server (see item cef19434-403e-4425-b2c7-ce62bfb99d06 in the log below). Blacklist entries can be deleted without problems.

[ Jan 17 2012 09:48:18 ] 200 POST whitelist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX/cef19434-403e-4425-b2c7-ce62bfb99d06/delete\nRequest: POST http://dev.mollom.com/v1/whitelist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX/cef19434-403e-4425-b2c7-ce62bfb99d06/delete

array (
'oauth_consumer_key' => '2K5X1Blf96uttrv922KpjqjlRN6NtzCX',
'oauth_version' => '1.0',
'oauth_nonce' => '2c30f92fc28aed5a4a4b7d5cba1d2790',
'oauth_timestamp' => 1326793698,
'oauth_signature_method' => 'HMAC-SHA1',
'oauth_signature' => 'T8SAigLZMfXDT5c1uoqxyTZ5O5w%3D',
)

\nRequest headers:

array (
'Accept' => 'application/xml, application/json;q=0.8, */*;q=0.5',
'Content-Type' => 'application/x-www-form-urlencoded',
)

\nResponse:

array (
'code' => '200',
)

[ Jan 17 2012 09:48:19 ] 200 GET whitelist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX\nRequest: GET http://dev.mollom.com/v1/whitelist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX

array (
'oauth_consumer_key' => '2K5X1Blf96uttrv922KpjqjlRN6NtzCX',
'oauth_version' => '1.0',
'oauth_nonce' => 'fbbc4ab4237036b9632c14ff5393f537',
'oauth_timestamp' => 1326793698,
'oauth_signature_method' => 'HMAC-SHA1',
'oauth_signature' => 'DLvoNufy5rAj4lPdley%2F5RF%2BeKo%3D',
)

\nRequest headers:

array (
'Accept' => 'application/xml, application/json;q=0.8, */*;q=0.5',
)

\nResponse:

array (
'code' => '200',
'list' =>
array (
0 =>
array (
'context' => 'allFields',
'id' => 'cef19434-403e-4425-b2c7-ce62bfb99d06',
'note' => 'test',
'status' => '1',
'value' => 'test',
),
1 =>
array (
'context' => 'allFields',
'id' => '5ef9be9d-2e9b-4741-9a81-ea78742b0dea',
'note' => '',
'status' => '0',
'value' => 'white',
),
2 =>
array (
'context' => 'allFields',
'id' => '9fbb464f-ef77-42d3-a3ea-38391062aa5e',
'note' => '',
'status' => '0',
'value' => 'whitelist11',
),
3 =>
array (
'context' => 'allFields',
'id' => 'a2f98415-f4a4-4fbb-8523-6a2ea547e63a',
'note' => 'test2',
'status' => '1',
'value' => 'test2',
),
),
)