Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds raw post method to post raw data e.g. to send preview image data #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions OoyalaApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,20 @@ public function post($requestPath, $requestBody = array(),
$requestBody);
}

/**
* Generates a POST request to the Ooyala API to post raw data.
* @param string $requestPath The path of the resource from the request.
* @param string $requestBody The raw POST data to send. Defaults to an empty string.
* @param array $queryParams The associative array with GET parameters.
* Defaults to array().
* @return string the response body.
* @throws OoyalaRequestErrorException if an error occurs.
*/
public function postRaw($requestPath, $requestBody = '', $queryParams = array())
{
return $this->sendRequest('POST', $requestPath, $queryParams, $requestBody);
}

/**
* Generates a PUT request to the Ooyala API.
* @param string $requestPath The path of the resource from the request.
Expand Down