PHP Google\Cloud\PubSub Topic::publish - 1개의 예제가 발견되었습니다. 이것들은 오픈소스 프로젝트에서 추출된 PHP의 Google\Cloud\PubSub\Topic::publish에 대한 실세계 최고 등급의 예제들입니다. 예제들을 평가하여 예제의 품질 향상에 도움을 줄 수 있습니다.
$message must provide at least one of data and attributes members.
Example:
$topic->publish([
'data' => 'New User Registered',
'attributes' => [
'id' => 1,
'userName' => 'John',
'location' => 'Detroit'
]
]);
또한 보기:
https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/publish Publish Message