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
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://content.ws.api.esv.tac.co.th"> | |
| <soapenv:Header/> | |
| <soapenv:Body> | |
| <con:OndemandEmailSending> | |
| <!--Optional:--> | |
| <OndemandEmailSendingRequest> | |
| <MessageHeader> | |
| <MessageID>ESVAPI20170518020242001</MessageID> | |
| <ReferenceKey>ESVAPI2017051802024193266865095064</ReferenceKey> | |
| <BusinessEvent>EmailVerificationBusiness</BusinessEvent> |
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
| public static void main(String...srgs) throws ServiceException { | |
| String body = "{\"transactionId\":\"1d1c183a-81b5-4565-a4eb-ac03e0018d6f\",\"timestamp\":1560945630926,\"statusCode\":\"S0000\",\"statusMessage\":\"Successfully processed.\",\"domainName\":\"mcapi\",\"data\":{\"products\":[{\"product_id\":35,\"category_code\":\"14\",\"category_name\":\"cat_1\",\"price_money\":1500.0,\"product_detail\":\"มีไก่กับใบกะเพรา มีพริกด้วย\",\"product_name\":\"กะเพราไก่\",\"quantity\":5,\"status\":\"1\",\"img_base64\":\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAFKAfQDAREAAhEBAxEB/8QAHQAAAAcBAQEAAAAAAAAAAAAAAgMEBQYHCAEACf/EAE0QAAEDAwMCBAQDBgMECAQFBQECAwQABREGEiEHMRNBUWEIFCJxMoGRFSNCYqGxUnLBFiQz0QklQ4KSsuHwF1Oi8RhEY3PCJjQ1k7P/xAAcAQABBQEBAQAAAAAAAAAAAAAAAQIDBAUGBwj/xAA9EQABAwMCAwUIAQQCAQQDAQEBAAIDBBEhEjEFQVETImFxgRQykaGxw |
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 class="editor"> | |
| <pre> | |
| <span v-html="rawHtml"></span> | |
| </pre> | |
| <editor-menu-bar v-slot="{ commands, isActive }" :editor="editor"> | |
| <div class="menubar"> | |
| <button | |
| class="menubar__button" | |
| :class="{ 'is-active': isActive.bold() }" |
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 admin = require('firebase-admin'); | |
| const appConstant = require('../../const'); | |
| exports = module.exports = async (req, res) => { | |
| let response = {}; | |
| try { | |
| const db = admin.firestore(); | |
| const postId = uuid4(); | |
| const currentDatetime = new Date(); |
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 admin = require('firebase-admin'); | |
| const appConstant = require('../const'); | |
| const QUERY_LIMIT = 1000; | |
| const cleanTempSession = async () => { | |
| const db = admin.firestore(); | |
| const now = new Date(); |
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 moment = require('moment'); | |
| const _ = require('lodash'); | |
| const Excel = require('exceljs'); | |
| const striptags = require('striptags'); | |
| const backup = require('./backup_prod_2019-12-26.json'); | |
| const source = 'analytic_source.xlsm'; | |
| const fn = { | |
| cells: 0, |
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 firestoreService = require('firestore-export-import'); | |
| const moment = require('moment'); | |
| // const serviceAccount = require('../../smart-farmer-web-dev-key.json'); | |
| // const serviceAccount = require('../../smart-farmer-web-test-key.json'); | |
| const serviceAccount = require('../../kasettongroo.json'); | |
| exports = module.exports = async(req, res) => { | |
| // const databaseURL = 'https://smart-farmer-web-dev.firebaseio.com'; |
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 class="test-container"> | |
| <client-only> | |
| <div v-for="itemKey of Object.keys(items)" :key="itemKey"> | |
| <masonry | |
| :cols="{ default: 4, 1000: 3, 700: 2, 400: 1 }" | |
| :gutter="{ default: '30px', 700: '15px' }" | |
| class="masonry-layout" | |
| > | |
| <div |
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 strict'; | |
| const { | |
| sanitizeEntity | |
| } = require('strapi-utils'); | |
| const buildError = (httpStatus, payload) => { | |
| return { | |
| status: httpStatus, | |
| body: JSON.stringify({ | |
| error: payload |
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 responseFromApi = { "transactionId": "7063c660-3ffa-4272-8d26-c64aae2d660e", "timestamp": 1594959997353, "statusCode": "S0000", "statusMessage": "Successfully processed.", "domainName": "root", "data": { "mapResponse": [{ "confKey": "master.operator", "confValue": "{\"operatorList\":[{\"code\":\"OP01\",\"name\":\"DTAC\",\"description\":\"dtn\"},{\"code\":\"OP02\",\"name\":\"DTN\",\"description\":\"dtn\"}]}", "confType": "J", "remark": "JSON Array Object" }, { "confKey": "master.sim.size", "confValue": "{\"simSizeList\":[{\"code\":\"01\",\"name\":\"H\",\"description\":\"Haft size\",\"boxSize\":500},{\"code\":\"02\",\"name\":\"P\",\"description\":\"Plug-in\",\"boxSize\":500}]}", "confType": "J", "remark": "JSON Array Object" }, { "confKey": "master.form.factor", "confValue": "{\"formFactorList\":[{\"code\":\"F01\",\"name\":\"2FF\",\"description\":\"2FF\"},{\"code\":\"F02\",\"name\":\"2+3+4FF\",\"description\":\"2+3+4FF\"},{\"code\":\"F03\",\"name\":\"MFF2\",\"description\":\"MFF2\"}]}", "confType": "J", " |
OlderNewer