This file has been truncated, but you can view the full file.
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
| [ | |
| { | |
| "zipCode": "10100", | |
| "subDistrictList": [ | |
| { | |
| "subDistrictId": "100801", | |
| "districtId": "1008", | |
| "provinceId": "10", | |
| "subDistrictName": "ป้อมปราบ" |
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
| #!/usr/bin/python | |
| #-*-coding: utf-8 -*- | |
| ##from __future__ import absolute_import | |
| ###### | |
| import json | |
| import time | |
| from flask import Flask | |
| from flask_jsonpify import jsonpify | |
| from flask import request, jsonify | |
| from flask_restful import Resource, Api, reqparse |
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 lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1" /> | |
| <title>PyScript Hello World</title> | |
| <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | |
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
| <py-env> | |
| - numpy |
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
| var url = "https://diewland.github.io/promptpay-qr-js/promptpay-qr.js" | |
| var promptpay = UrlFetchApp.fetch(url).getContentText(); | |
| eval(promptpay) | |
| function doGet(request){ | |
| var pid = request.parameter.pid | |
| var amt = request.parameter.amt | |
| var promptpay_text = PromptPayQR.gen_text(pid, amt) | |
| result = {} | |
| result['qrstring'] = promptpay_text |
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
| function doGet(request){ | |
| // Change Spread Sheet url | |
| var bookingname = request.parameter.bookingname | |
| var startdate = request.parameter.datetime+'+07:00' | |
| var hours = request.parameter.duration | |
| var title = request.parameter.title | |
| createEvent(bookingname,startdate,hours,title) | |
| var result = {} | |
| result.result = 'added' | |
| // console.log(result) |
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
| function doGet(request){ | |
| // Change Spread Sheet url | |
| var ss = SpreadsheetApp.openByUrl("sheeturl"); | |
| var customer_id = request.parameter.customer_id | |
| var customer_name = request.parameter.customer_name | |
| var tag = request.parameter.tag | |
| var sheet = ss.getActiveSheet(); | |
| var today = new Date(); | |
| var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate(); | |
| var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); |
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
| function doGet(request){ | |
| // Change Spread Sheet url | |
| var ss = SpreadsheetApp.openByUrl("sheeturl"); | |
| var cid = request.parameter.customer_id | |
| //var cid = 'U29aea6de153dac793b42dd0659e2f878' | |
| var cidsum = finduser(ss,cid) | |
| result = {} | |
| result.customer_id = cid | |
| result.totalsum = cidsum | |
| //console.log(result) |
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
| function doGet(request){ | |
| // Change Spread Sheet url | |
| var ss = SpreadsheetApp.openByUrl("sheeturl"); | |
| var customer_id = request.parameter.customer_id | |
| var score = request.parameter.score | |
| var sheet = ss.getActiveSheet(); | |
| sheet.appendRow([customer_id, score]); | |
| var result = {} | |
| result.result = 'added' | |
| // console.log(result) |
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
| { | |
| "type": "audio", | |
| "originalContentUrl": "<<API_botnoivoice.audio_url>>", | |
| "duration": 60000, | |
| "sender": { | |
| "name": "Lisa", | |
| "iconUrl": "https://s.isanook.com/ns/0/ui/1698/8490842/254548076_625165548500065_8965182106882304688_n.jpg" | |
| } | |
| } |
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
| { | |
| "text":"<<keyword>>", | |
| "speaker":"1", | |
| "volume":1, | |
| "speed":1 | |
| } |
NewerOlder