fumaggo/ezmollom — Issue #2: Blacklist entry status and notes
Author: fumaggo
Created: 2012-01-17 18:07:44+00:00
State: open

1. The blacklist entry status is always 0, even if 'status' => 1 is defined in the request,
2. The notes field is not returned (and not populated) for blacklist entries.

200 POST blacklist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX\nRequest: POST http://dev.mollom.com/v1/blacklist/2K5X1Blf96uttrv922KpjqjlRN6NtzCX

array (
'id' => '',
'value' => 'viagra',
'context' => 'allFields',
'match' => 'contains',
'reason' => 'spam',
'status' => 1,
'note' => '',
'oauth_consumer_key' => '2K5X1Blf96uttrv922KpjqjlRN6NtzCX',
'oauth_version' => '1.0',
'oauth_nonce' => '08a903171dccfe59c2db83e9051270e0',
'oauth_timestamp' => 1326737505,
'oauth_signature_method' => 'HMAC-SHA1',
'oauth_signature' => 'SN%2Ft%2BgcTMfInmsj%2Bur4xZrWqHPo%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',
'entry' =>
array (
'context' => 'allFields',
'created' => '1326737506',
'id' => '220afe5e-f75e-465d-8859-fd7d905177ba',
'match' => 'contains',
'reason' => 'spam',
'status' => '0',
'value' => 'viagra',
),
)

Jan-16 2012 07:20 pm