This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trigger function copies new data in FB database to Google Sheet | |
const FUNCTIONS_CLIENT_ID = functions.config().googleapi.client_id; | |
const FUNCTIONS_SECRET_KEY = functions.config().googleapi.client_secret; | |
const FUNCTIONS_REDIRECT = '{YOUR_FUNCTIONS_SUBDOMAIN}.cloudfunctions.net/OauthCallback'; | |
// TODO: use firebase functions:config:set to configure your Google API client ID and secret | |
// Also update FUNCTIONS_REDIRECT | |
const googleAuth = require('google-auth-library'); | |
const google = require('googleapis'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code to write Google API Oauth tokens to Firebase database | |
const FUNCTIONS_CLIENT_ID = functions.config().googleapi.client_id; | |
const FUNCTIONS_SECRET_KEY = functions.config().googleapi.client_secret; | |
const FUNCTIONS_REDIRECT = '{YOUR_FUNCTIONS_SUBDOMAIN}.cloudfunctions.net/OauthCallback'; | |
// TODO: use firebase functions:config:set to configure your Google API client ID and secret | |
// Also update FUNCTIONS_REDIRECT | |
const googleAuth = require('google-auth-library'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="homepage"> | |
<h1>Les dernières Articles</h1> | |
<div class="article" v-for="article in articles"> | |
<h2> {{ article.title }} </h2> | |
<p> {{ article.content }} </p> | |
</div> | |
</div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder