Please add a jira ticket for me so I don't forget this!

Sent from my iPhone

On Feb 1, 2014, at 7:22 AM, Jeff Swartz <notifications@github.com> wrote:

In OpenTokSDK.php:

> @@ -183,8 +198,13 @@ public function getArchive($archive_id) {
>      }
>
>      /**
> -     * Deletes an archive
> -     * $archive_id - The ID of the archive (returned from startArchive)
> +     * Deletes an OpenTok archive.
> +     * <p>
> +     * You can only delete an archive which has a status of "available" or "uploaded". Deleting an archive

The REST API returns a 409 status if the status is not "available,"
"uploaded", or "deleted":

http://logosdatabase.com/logoimages/77771764.jpg

However, the REST docs do not include this info. (I am adding it now.)

Also, the PHP code does not check for a 409 response. Patrick, I'll let you
add that to OpenTokArchivingInterface.deleteArchive(), and have it throw an
OpenTokArchiveException. (I will document it as such.)

—
Reply to this email directly or view it on
GitHub<https://github.com/thepatrick/Opentok-PHP-SDK/pull/1/files#r9356052>
.