Create oauth token for smart device in google could project
Pass credential json path like -smart-device-cred-path <credentials.json>
Create google could project for pubsub
Pass it like -pubsub-project-id <google could project id>
Create pubsub subscription against pubsub topic given in the nest device project
Pass it like -pubsub-subscription-id <subscription name>
Create google cloud service account for pubsub
Pass credential json path like -pubsub-cred-path <pub-sub-client-key-<google cloud project id>-hoge.json>
Run program like go run main.go <args> -output-dir output