sign in

Transfer a video to HeyWatch

Home | RecentChanges | All Pages | Help
Comparing version 2 and version 1 back

This code uses the PEAR HTTP request.


setBasicAuth("johndoe", "foo");
$req->setMethod(HTTP_REQUEST_METHOD_POST);
$req->addPostData("url", $video_url);
$req->addPostData("title", $video_title);

if (!PEAR::isError($req->sendRequest())) {
   echo $req->getResponseBody(); // XML response
}
?>
Powered by JunebugWiki v0.0.18