/** * Sets the small view for the user given by the GUID. * * @param $guid The GUID of the user to set the small view for. * @param $content The content to set the small view to. * @return True on success, false otherwise. */ function setSmallView($guid, $content) { global $YahooConfig; $client = new OAuthClient($this->consumer, NULL); $request_url = sprintf("http://%s/v1/cache/view/small/%s", $YahooConfig["YAP_WS_HOSTNAME"], urlencode($guid)); $response = $client->put($request_url, "text/html;charset=utf-8", $content); return !(YahooUtil::is_response_error($response)); }