From 4402b70816b9a1f8f701012b65ca3aea68fde4ea Mon Sep 17 00:00:00 2001 From: Chen Wang <chenw@google.com> Date: Tue, 3 Feb 2015 12:11:29 -0800 Subject: [PATCH] Add README --- examples/tips/README | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/tips/README diff --git a/examples/tips/README b/examples/tips/README new file mode 100644 index 0000000000..faebb7343c --- /dev/null +++ b/examples/tips/README @@ -0,0 +1,30 @@ +C++ Client implementation for Cloud Pub/Sub service (TIPS) +(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/). + +"Google Cloud Pub/Sub" API needs to be enabled at +https://console.developers.google.com/project to open the access for a client. +Select the project name, select the "APIs" under "APIs & auth", and turn +on "Google Cloud Pub/Sub" API. + +To run the client from Google Compute Engine (GCE), the GCE instance needs to +be created with scope "https://www.googleapis.com/auth/cloud-platform" as below: + +gcloud compute instances create instance-name + --image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform + +To run the client from GCE: +make tips_client +bins/opt/tips_client + +A service account credential is required to run the client from other +environments, which can be generated as a JSON key file from +https://console.developers.google.com/project/. To run the client with a service +account credential: + +bins/opt/tips_client + --service_account_key_file="absolute path to the JSON key file" + --project_id="your project id" + + + + -- GitLab