https://github.com/apiko-dev/meteor-google-cloud-storage
Simple GCS API connector
https://github.com/apiko-dev/meteor-google-cloud-storage
Last synced: 20 days ago
JSON representation
Simple GCS API connector
- Host: GitHub
- URL: https://github.com/apiko-dev/meteor-google-cloud-storage
- Owner: apiko-dev
- License: mit
- Created: 2017-02-10T13:46:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-14T08:40:38.000Z (almost 9 years ago)
- Last Synced: 2025-03-05T17:53:30.542Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Cloud Storage API Client
Google Cloud Storage API Client for Meteor.
__Right now only remove file method is implemented__
## Quick example
```js
import { GoogleCloudStorage } from 'meteor/jss:google-cloud-storage';
//initialize client
var authOptions = {
email: CloudSettings.SERVICE_EMAIL,
keyFile: CloudSettings.PEM_FILE, //PEM file name located in `/private` directory
};
var cloudStorageClient = new GoogleCloudStorage(authOptions); //create new client instance
// remove file
cloudStorageClient.removeFile('test_file_to_remove.txt');
```
## Getting PEM file
This package is built on top of `google-oauth-jwt` npm package. Here's [detailed instruction](https://www.npmjs.com/package/google-oauth-jwt#creating-a-service-account-using-the-google-developers-console) how to generate `.pem` file.
-------------
Made by [](http://jssolutionsdev.com) - [Professional Meteor Development Company](http://jssolutionsdev.com)