google-api-sample

module
v0.0.0-...-759e132 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2021 License: MIT

README

google-api-sample

Build

$ make build

Run sample binary

$ GBP_CLIENT_ID=<Google Client ID> \
  GBP_CLIENT_SECRET=<Google Client Secret> \
  GBP_REFRESH_TOKEN=<Refresh token> \
  GBP_REDIRECT_URL=<Redirect URL> \
  ./bin/sample

Run token-reciever server binary

$ GBP_CLIENT_ID=<Google Client ID> \
  GBP_CLIENT_SECRET=<Google Client Secret> \
  GBP_REFRESH_TOKEN=<Refresh token> \
  GBP_REDIRECT_URL=<Redirect URL> \
  ./bin/token-reciever

Run pubsub-pub binary

$ GCP_CLIENT_ID=<Google Client ID> \
  GCP_CLIENT_SECRET=<Google Client Secret> \
  GCP_REFRESH_TOKEN=<Refresh token> \
  GCP_REDIRECT_URL=<Redirect URL> \
  ./bin/pubsub-pub

Run pubsub-pub binary

$ GCP_CLIENT_ID=<Google Client ID> \
  GCP_CLIENT_SECRET=<Google Client Secret> \
  GCP_REFRESH_TOKEN=<Refresh token> \
  GCP_REDIRECT_URL=<Redirect URL> \
  ./bin/pubsub-sub

Directories

Path Synopsis
adapter
cmd
pubsub-pub command
pubsub-sub command
sample command
token-reciever command