Skip to content

Instantly share code, notes, and snippets.

View spksoft's full-sized avatar
🤤
Sleeping on the working hours

Sippakorn Raksakiart spksoft

🤤
Sleeping on the working hours
View GitHub Profile
import React, { PropTypes } from 'react'
import FormPage from '../Layout/Page/FormPage'
import { Grid, Row, Col, Panel, Button, Input } from 'react-bootstrap';
import FormHorizontal from '../Form/FormHorizontal'
import FormGroupTextInput from '../Form/FormGroupTextInput'
import FormGroupSelect from '../Form/FormGroupSelect'
import FormGroupDatePicker from '../Form/FormGroupDatePicker'
import update from 'react-addons-update'
//import update from 'react-addons-update'
@spksoft
spksoft / aaa
Created June 14, 2017 15:52
aa
curl 'http://finstreet.co/api/search-product' -H 'Origin: http://finstreet.co' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: th,en-US;q=0.8,en;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://finstreet.co/search.html' -H 'Cookie: visited=yes; _ga=GA1.2.1762920066.1497455109; _gid=GA1.2.2046061642.1497455109; _gat=1' -H 'Connection: keep-alive' --data-binary '{"hasInsurance":true,"stepPayment":false,"lockPeriod":0,"repaymentYear":0,"sort":"installment","lowerInterest":true,"lowerMonthly":true,"notSure":true,"age":27,"principal":"20000000","propertyWorth":"25000000","topup":"20000","hasTopup":true,"monthlyInstallment":"","remainingYear":"27","bankId":"10","occupation":"SE","lowInstallment":true,"limit":1000,"page":0}' --compressed
type MyString = string;
const test: MyString = 'HelloWorld';
type User = {
firstname: string,
lastname: string
};
type NumberOrStringOrStudent = string | number | User;
let myValue: NumberOrStringOrStudent;
const sampleUser: User = {
firstname: 'Sippakorn',
lastname: 'Raksakiart'
type Person = {
firstname: string,
lastname: string
};
interface User extends Person {
role: string;
};
const myUser: User = {
<!DOCTYPE html>
<html lang="en">
<body>
<div id="testChat">
HelloWorld
</div>
<div class="fb-customerchat" page_id=""></div>
<script>
<html>
<body>HelloWorld<b> !!!</b></body>
</html>

ดึงข้อมูล Refinance Product

API Spec

URL

https://finstreet.co/api/search-product

Method

POST

ส่งข้อมูลการสมัครรีไฟแนนซ์บ้านไปสู่ระบบ finstreet

API Spec

URL

https://api.finstreet.com/open/api/itax/enquire

Method

POST

ดึงข้อมูล จังหวัดและอำเภอ

API Spec

URL

https://api.finstreet.com/open/api/itax/location/provinces

Method

GET