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
{ | |
"error": { | |
"code": 401, | |
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", | |
"status": "UNAUTHENTICATED" | |
} | |
} |
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
// 1. Load the JavaScript client library. | |
gapi.load('client', init); | |
async function init() { | |
// 2. Initialize the JavaScript client library. | |
await gapi.client.init({ | |
discoveryDocs: ['https://discovery.googleapis.com/$discovery/rest'] | |
}); | |
start(); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Docs API Quickstart</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<p>Google Docs API Quickstart</p> | |
<!--Add buttons to initiate auth sequence and sign out--> | |
<button id="authorize_button" style="display: none;">Authorize</button> |
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
Malishevë, Kosovo | |
Prizren, Kosovo | |
Zubin Potok, Kosovo | |
Kamenicë, Kosovo | |
Viti, Kosovo | |
Shtërpcë, Kosovo | |
Shtime, Kosovo | |
Vushtrri, Kosovo | |
Dragash, Kosovo | |
Podujevë, Kosovo |
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
Viti, Kosovo | |
Shtërpcë, Kosovo | |
Shtime, Kosovo | |
Vushtrri, Kosovo | |
Bonney Lake, United States | |
Spokane Valley, United States | |
Bellevue, United States | |
Marysville, United States | |
Newcastle, United States | |
North Bend, United States |
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
[ | |
{ | |
"formatted_address":"11 Park Pl, New York, NY 10007, United States", | |
"geometry":{ | |
"location":{ | |
"lat":40.7130634, | |
"lng":-74.0082771 | |
}, | |
"viewport":{ | |
"northeast":{ |
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
const parent = client.queuePath(project, location, queue); | |
const task = { | |
httpRequest: { | |
httpMethod: 'POST', | |
url, | |
}, | |
}; | |
const [response] = await client.createTask({parent, task}); |
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
const express = require('express'); | |
const app = express(); | |
const routes = { | |
'/foo': (req, res) => res.send('This is a test.'), | |
}; | |
Object.entries(routes).map(([route, func]) => app.use(route, func)); | |
app.use('/', (req, res) => res.send(Object.keys(routes))); // default | |
// Export the Express app to the Functions Framework | |
exports.function = app; |
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
package hello | |
import ( | |
"net/http" | |
"fmt" | |
) | |
// HelloWorld writes "Hello, World!" to the HTTP response. | |
func HelloWorld(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprint(w, "Hello, World!\n") |
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
package main | |
import ( | |
"log" | |
"os" | |
"example.com/hello" | |
"github.com/GoogleCloudPlatform/functions-framework-go/framework" | |
) |