We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8196b commit 59ad955Copy full SHA for 59ad955
functions/pubsub/main.py
@@ -12,7 +12,7 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-# [START functions_pubsub_setup]
+# [START functions_pubsub_publish]
16
import base64
17
import json
18
import os
@@ -23,10 +23,8 @@
23
# Instantiates a Pub/Sub client
24
publisher = pubsub_v1.PublisherClient()
25
PROJECT_ID = os.getenv('GCP_PROJECT')
26
-# [END functions_pubsub_setup]
27
28
29
-# [START functions_pubsub_publish]
30
# Publishes a message to a Cloud Pub/Sub topic.
31
def publish(request):
32
request_json = request.get_json(silent=True)
0 commit comments