Skip to content

Make pubsub.topic.publish()'s first example dead-simple. #670

Description

@jgeewax

Right now, the publish method has a long JSON object to publish, showing everything under the sun. Could we make the first example be super simple publishing a hello-world type message?

topic.publish({data: 'Hello world!'}, function(err, messageIds, apiResponse) {});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions