Skip to content

Commit

Permalink
Add notification_url param to the update method
Browse files Browse the repository at this point in the history
  • Loading branch information
shedar authored and const-cloudinary committed Jun 11, 2018
1 parent 3f455ae commit 724eb4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ public function update($public_id, $options = array())
"auto_tagging",
"background_removal",
"quality_override",
"notification_url",
)
);

Expand Down
7 changes: 7 additions & 0 deletions tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,13 @@ public function test20_manual_moderation()
$this->assertEquals($api_result["moderation"][0]["kind"], "manual");
}

public function test21_notification_url()
{
Curl::mockApi($this);
$this->api->update("foobar", array("notification_url" => "http://example.com"));
assertParam($this, "notification_url", "http://example.com");
}

/**
* Should support requesting raw_convert
*
Expand Down

0 comments on commit 724eb4c

Please sign in to comment.