. * * @package StatusNet * @author James Walker * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ class Salmon { public function post($endpoint_uri, $xml) { if (empty($endpoint_uri)) { return FALSE; } $headers = array('Content-type: application/atom+xml'); try { $client = new HTTPClient(); $client->setBody($xml); $response = $client->post($endpoint_uri, $headers); } catch (HTTP_Request2_Exception $e) { return false; } if ($response->getStatus() != 200) { return false; } } public function createMagicEnv($text, $userid) { } public function verifyMagicEnv($env) { } }