blob: faeb622153f2377694b6ff075aced3eda7a9675d [file] [log] [blame]
Abhishek Kumar85f99632015-02-25 11:45:05 -08001Experimental example code, likely to change.
2Users should not attempt to run this code till this warning is removed.
3
Chen wang84232512015-02-12 17:29:18 -08004C++ Client implementation for Cloud Pub/Sub service
Chen Wang4402b702015-02-03 12:11:29 -08005(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/).
6
7"Google Cloud Pub/Sub" API needs to be enabled at
8https://console.developers.google.com/project to open the access for a client.
9Select the project name, select the "APIs" under "APIs & auth", and turn
10on "Google Cloud Pub/Sub" API.
11
12To run the client from Google Compute Engine (GCE), the GCE instance needs to
13be created with scope "https://www.googleapis.com/auth/cloud-platform" as below:
14
15gcloud compute instances create instance-name
16 --image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform
Chen wang84232512015-02-12 17:29:18 -080017
Chen Wang4402b702015-02-03 12:11:29 -080018
Abhishek Kumar85f99632015-02-25 11:45:05 -080019To run the client:
20make pubsub_client
21bins/opt/pubsub_client --project_id="your project id"