flag spam using the API
flag spam using the API
| Issue ID: | 2483 |
| Issue Category: | feature |
| Component: | api |
| Priority: | normal |
| Status: | active |
| Assigned: | Unassigned |
| Keywords: | api, block, flag, spam |
a user should be able to block and flag another user in one API call

Updates
#1
api/blocks/create can be used to block a given user; if the UserFlag plugin is set up, it'll also be flagged when the block is made.
http://status.net/wiki/TwitterCompatibleAPI#Block_resources
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-blocks%C2%A0create
There isn't currently a way to *only* flag without blocking from the API, as UserFlag adds no API points of its own. Is that needed?
#2
Let me clarify that this bug is in regards to the identi.ca API. flagging should be implemented in the API and it should be a "child" of the blocks/create API, which seems to be broken right now, but that's another bug.
Something along the lines of
api/blocks/flag.[FORMAT]?user_id=[USER_ID]
Which would block the user and send a flag to the admins for review. The 'create' function would still exist and could be used to block someone that is being a pest, but using 'create' should not send a notification to the admins.
Should I put a separate bug in for api/blocks/create not working?
You can also subscribe to the
RSS feed for updates to this issue.