* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Point to the correct directory chdir(".."); // Include all the required files require_once 'library/googlepoll.php'; $merchant_id = ""; $merchant_key = ""; $environment = "sandbox"; $certificate_path = ""; // set your SSL CA cert path $tokenRequest = new ContinueTokenRequest($merchant_id, $merchant_key, $environment, $certificate_path); $tokenRequest->SetStartTime("2012-01-01T18:25:31"); $contToken = $tokenRequest->RequestToken(); if ($contToken != "false") { $poll = new GooglePoll($merchant_id, $merchant_key, $environment, $contToken, $certificate_path); $poll->GetAllNotifications(false); $pollSuccessful = $poll->RequestData(); if ($pollSuccessful == true) { $notifications = $poll->GetNotifications(); echo "Total Number of Notifications retrieved: " . sizeof($notifications) . "<br><br>"; foreach ($notifications as $notification) { print_r($notification); echo "<br><br>"; } } }