photo-front/documentation/api/PostActionDelete.markdown
2011-11-30 13:01:26 -08:00

1.9 KiB

Open Photo API / Delete Action

OpenPhoto, a photo service for the masses


  1. Purpose
  2. Endpoint
  3. Parameters
  4. Examples
  1. Response

Purpose of the delete action API

Use this API to delete an action on a photo. This includes comments and favorites.


Endpoint

Authentication: required

POST /action/photo/:targetId/delete.json

Parameters

N/A


Examples

Command Line (using openphoto-php)

./openphoto -p -X POST -h current.openphoto.me -e /action/photo/a/delete.json

PHP (using openphoto-php)

$client = new OpenPhotoOAuth($host, $consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
$response = $client->post("/action/photo/a/delete.json");

Response

The response is in a standard response envelope.

  • message, A string describing the result. Don't use this for anything but reading.
  • code, 200 on success
  • result, boolean

Sample

{
  "message":"",
  "code":200,
  "result": true
}