Skip to content

Instantly share code, notes, and snippets.

View burakfircasiguzel's full-sized avatar
🎯
Focusing

Burak Fırçasıgüzel burakfircasiguzel

🎯
Focusing
View GitHub Profile
@burakfircasiguzel
burakfircasiguzel / request-response.json
Last active April 14, 2022 08:05
Google Translate Api Request-Response
// EXAMPLE REQUEST BODY
{
"data": [
{
"original": "Hello, My name is Burak"
},
{
"original": "I'm a software developer"
},
{
@burakfircasiguzel
burakfircasiguzel / google_translate_api.gs
Last active April 13, 2022 15:16
Google Translate API
// Author: Burak Fircasiguzel <github.com/burakfircasiguzel>
// Post requests are processed within the doPost(e) method in Google Apps Script
function doPost(e) {
// In POST requests, parameters and variables are contained in e.postData.contents as a default
var datas = JSON.parse(e.postData.contents);
// This is the JSON object that will return as the response we created.
var response = {