C2DM implementation PHP code
To register your own server system and obtain the Authorise Tokens (this is what Cpt. Ohlund proposed): function googleAuthenticate($username, $password, $source=”Company-AppName-Version”, $service=”ac2dm”) { session_start(); if( isset($_SESSION[‘google_auth_id’]) && $_SESSION[‘google_auth_id’] != null) return $_SESSION[‘google_auth_id’]; // get an authorization token $ch = curl_init(); if(!ch){ return false; } curl_setopt($ch, CURLOPT_URL, “https://www.google.com/accounts/ClientLogin”); $post_fields = “accountType=” . urlencode(‘HOSTED_OR_GOOGLE’) . “&Email=” . … Read more