One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
syntax on | |
colorscheme onedark | |
syntax enable | |
let mapleader = ' ' | |
set number | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set nowrap |
'use strict'; | |
const storage = require('@google-cloud/storage'); | |
const fs = require('fs') | |
const gcs = storage({ | |
projectId: 'your-project-id', | |
keyFilename: '/path/to/keyfile.json' | |
}); | |
const bucketName = 'bucket-name-for-upload' |
const express = require('express'); | |
const router = express.Router(); | |
const Multer = require('multer'); | |
const imgUpload = require('../modules/imgUpload'); | |
// Handles the multipart/form-data | |
// Adds a .file key to the request object | |
// the 'storage' key saves the image temporarily for in memory | |
// You can also pass a file path on your server and it will save the image there | |
const multer = Multer({ |
// Function form the react-native-image-picker library | |
ImagePicker.showImagePicker({ title: 'Select Image' }, (response) => { | |
// format the image data | |
const image = { | |
uri: response.uri, | |
type: 'image/jpeg', | |
name: 'myImage' + '-' + Date.now() + '.jpg' | |
} | |
// Instantiate a FormData() object | |
const imgBody = new FormData(); |
Learn to send Webchat events and leads to your CRM or system of record
If you are using Podium Webchat on your business website, you have the ability to capture events from the widget and send them to the place of your choosing. This article assumes that: