Before running the samples, make sure you've followed the steps outlined in Using the client library.
Create Feed.
View the source code.
Usage:
node createFeed <FEED_ID> "storage.googleapis.com/<BUCKET_NAME>", projects/<PROJECT_ID>/topics/<TOPIC_ID>
Delete Feed.
View the source code.
Usage:
node deleteFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"
Export asserts to specified dump file path.
View the source code.
Usage:
node exportAssets.js <gs:my-bucket/my-assets.txt>
Batch get history of assets.
View the source code.
Usage:
node getBatchAssetHistory "storage.googleapis.com/<BUCKET_NAME>"
Get Feed.
View the source code.
Usage:
node getFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"
List Feeds.
View the source code.
Usage:
node listFeeds
Batch get history of assets.
View the source code.
Usage:
node getBatchAssetHistory "storage.googleapis.com/<BUCKET_NAME>"
Update Feed.
View the source code.
Usage:
node updateFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>" projects/<PROJECT_ID>/topics/<TOPIC_ID>