apiko-dev / meteor-google-cloud-storage

Simple GCS API connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Storage API Client

Google Cloud Storage API Client for Meteor.

Right now only remove file method is implemented

Quick example

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 how to generate .pem file.


Made by Professional Meteor Development Studio - Professional Meteor Development Company

About

Simple GCS API connector

License:MIT License


Languages

Language:JavaScript 100.0%