Skip to content

PreviewTechnologies/google-pubsub-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

####Google Pub/Sub Web Hook Receiver

Usage

<?php
require "vendor/autoload.php";

$mapper = new JsonMapper();

/**
 * @var $messageObject \Previewtechs\GooglePubSubUtility\WebHookReceiver\WebHook
 */
$messageObject = $mapper->map(json_decode($_POST), new \Previewtechs\GooglePubSubUtility\WebHookReceiver\WebHook());

var_dump($messageObject->getMessage()->getData()->getDecoded());

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages