api_key = PINGFM_API_KEY; $this->user_app_key = PINGFM_USER_APP_KEY; } function post( $status, $post_method="default" ){ $session = $this->createSession( "http://api.ping.fm/v1/user.post" ); } /** * Create a CURL session with ping.fm credentials * @return resource The curl session returned by curl_init() */ function createSession( $url ){ $session = curl_init(); curl_setopt ( $session, CURLOPT_URL, $url ); curl_setopt ( $session, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ); curl_setopt ( $session, CURLOPT_HEADER, false ); curl_setopt ( $session, CURLOPT_USERPWD, TWITTER_EMAIL. ":" . TWITTER_PASSWORD ); curl_setopt ( $session, CURLOPT_RETURNTRANSFER, 1 ); return $session; } } ?>