# User portfolio API
###### tags: `api`
## API Specification
### Base Url
https://fixzyapp.co
### Main Category List
```
GET /subwebsite/shiftwork/api/shiftwork_user_api_v100/main_category/format/json
```
#### Response
##### Response - `Success 200`
##### Response example
Example : Success
```json=
{
"data": {
"main_category_list": [
{
"id": "1",
"title": "ระบบน้ำ",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e1009806024947128b.png"
},
{
"id": "2",
"title": "ระบบไฟ",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e1009806024947128c.png"
},
{
"id": "3",
"title": "เครื่องใช้ไฟฟ้า",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e2009806024947128d.png"
},
{
"id": "4",
"title": "โครงสร้าง",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e2009806024947128e.png"
},
{
"id": "5",
"title": "บริการและซ่อมบำรุง",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e2009806024947128f.png"
},
{
"id": "6",
"title": "เบ็ดเตล็ด",
"image_url": "https://fixzy.s3-ap-southeast-1.amazonaws.com/category/main_v5/544dd7e20098060249471290.png"
}
],
"custom_message": {
"title": "สำเร็จ",
"detail": "",
"btn": "ปิด",
"image": null,
"value": null
},
"api_result": true
}
}
```
---
### Provider
```
GET /subwebsite/shiftwork/api/shiftwork_user_api_v100/get_provider/format/json
```
#### Perameter
```
page: 1
province_id: 558d06e8ea228663008b6579 (Optional)
district_id: 558d06e8ea228663008b65c5 (Optional)
accept_language: EN/TH
```
#### Response
##### Response - `Success 200`
##### Response example
Example : Success
```json=
{
"data": {
"provider_list": [
{
"id": {
"$id": "5650d9c72762cb63008b469a"
},
"fixman_image": "https://fixzy.s3-ap-southeast-1.amazonaws.com/fixman/Array/5650d9c72762cb63008b469a_1516773163.jpg",
"name": "นายเอกสิทธิ์ ไชยสุโพธิ์",
"average_raring": 0,
"count_complete_job": 0,
"service_area": [
"กระบี่",
"กาฬสินธุ์",
"บึงกาฬ",
"สกลนคร",
"หนองคาย",
"หนองบัวลำภู",
"อุดรธานี"
],
"portfolio_view_url": "https://shiftwork.fixzyapp.co/portfolio/detail/87AEC7",
"recommend_badge": false,
"card_badge": true,
"police_badge": false,
"insurance_badge": false
},
{
"id": {
"$id": "566c3a92292e8265008b4638"
},
"fixman_image": "https://fixzy.s3-ap-southeast-1.amazonaws.com/fixman/Array/566c3a92292e8265008b4638_15859011153657.jpg",
"name": "วีระยุทธ โคกสีอำนวย",
"average_raring": "4.5",
"count_complete_job": 6,
"service_area": [
"กาฬสินธุ์",
"ขอนแก่น",
"ชัยภูมิ",
"นครราชสีมา",
"มหาสารคาม",
"สกลนคร",
"อุดรธานี"
],
"portfolio_view_url": "https://shiftwork.fixzyapp.co/portfolio/detail/GFPJ7J",
"recommend_badge": false,
"card_badge": true,
"police_badge": false,
"insurance_badge": false
} ],
"custom_message": {
"title": "สำเร็จ",
"detail": "",
"btn": "ปิด",
"image": null,
"value": null
},
"api_result": true
}
}
```
---
### Tracking [กด ติดต่อสอบถามข้อมูลเพิ่มเติม]
```
GET /subwebsite/shiftwork/api/shiftwork_user_api_v100/event_tracking/format/json
```
#### Perameter
```
project_name: SHIFTWORK
page_name: PORTFOLIO_VIEW
event_name: CONTACT_FIXMAN,
user_type: END_USER
key: Z761NF (short url)
```
#### Response
##### Response - `Success 200`
##### Response example
Example : Success
```json=
{
"data": {
"api_result": true,
}
}
```
---
### Job Request [กด เพื่อแจ้งงาน]
```
GET https://www.fixzy.app/fixrequest/request_authen/:subCatId
```
#### Perameter
```
subCatId: 5472b6decfa9c551008b4d1d
```
### Category List
```
GET /subwebsite/shiftwork/api/shiftwork_user_api_v100/category/format/json
```
#### Perameter
```
accept_language: EN/TH
```
#### Response
##### Response - `Success 200`
##### Response example
Example : Success
```json=
{
"data": {
"categories": [
{
"main_category": {
"id": "1",
"title": "ระบบน้ำ"
},
"sub_cat_tegory": [
{
"id": {
"$id": "5472b6decfa9c551008b4d1d"
},
"title": "ปั๊มน้ำ"
},
{
"id": {
"$id": "54865f6e2c1f5552008b4569"
},
"title": "สุขภัณฑ์"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d1f"
},
"title": "ส้วมตัน"
}
]
},
{
"main_category": {
"id": "2",
"title": "ระบบไฟ"
},
"sub_cat_tegory": [
{
"id": {
"$id": "549a96e970c817cf008b4574"
},
"title": "สายไฟ-ปลั๊กไฟ-สวิตซ์ไฟ"
},
{
"id": {
"$id": "547d66f9f3961752008b4570"
},
"title": "หลอดไฟ"
}
]
},
{
"main_category": {
"id": "3",
"title": "เครื่องใช้ไฟฟ้า"
},
"sub_cat_tegory": [
{
"id": {
"$id": "5472b6decfa9c551008b4d0e"
},
"title": "แอร์ เครื่องปรับอากาศ"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d10"
},
"title": "เครื่องซักผ้า-เครื่องอบผ้า"
},
{
"id": {
"$id": "547d7314f3961751008b45dd"
},
"title": "เครื่องทำน้ำอุ่น-เครื่องทำน้ำร้อน"
}
]
},
{
"main_category": {
"id": "4",
"title": "โครงสร้าง"
},
"sub_cat_tegory": [
{
"id": {
"$id": "5d71d3242b6f457d008b45c8"
},
"title": "ช่างทาสี"
},
{
"id": {
"$id": "547d7438f3961751008b45e6"
},
"title": "มุ้งลวด"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d27"
},
"title": "พื้น"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d28"
},
"title": "หลังคา-ดาดฟ้า"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d29"
},
"title": "กระจก"
},
{
"id": {
"$id": "547d73acf3961752008b45dd"
},
"title": "ผนัง"
},
{
"id": {
"$id": "547d7359f3961752008b45da"
},
"title": "ฝ้า-เพดาน"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d2f"
},
"title": "รางน้ำฝน"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d2c"
},
"title": "ประตู"
},
{
"id": {
"$id": "5472b6decfa9c551008b4d2d"
},
"title": "หน้าต่าง"
}
]
},
{
"main_category": {
"id": "5",
"title": "บริการและซ่อมบำรุง"
},
"sub_cat_tegory": [
{
"id": {
"$id": "5472b6decfa9c551008b4d35"
},
"title": "กำจัดปลวก มด แมลงและสัตว์รบกวน"
},
{
"id": {
"$id": "55e59e1299d98568008b45a2"
},
"title": "ทำความสะอาดแบบ Big Cleaning"
},
{
"id": {
"$id": "56fb7ba6c0804a19647bf621"
},
"title": "บริการกำจัดไรฝุ่นหรือทำความสะอาดที่นอน"
}
]
}
],
"api_result": true
}
}
```
---
### Service Area
```
GET /subwebsite/shiftwork/api/shiftwork_user_api_v100/service_area/format/json
```
#### Perameter
```
accept_language: EN/TH
```
#### Response
##### Response - `Success 200`
##### Response example
Example : Success
```json=
{
"data": {
"service_areas": [
{
"province": {
"id": {
"$id": "558d06e8ea228663008b6577"
},
"title": "กระบี่"
},
"district": [
{
"id": {
"$id": "558d06e8ea228663008b65c5"
},
"title": "คลองท่อม",
"parish": [
{
"id": {
"$id": "558d06e9ea228663008b6944"
},
"title": "คลองท่อมเหนือ"
},
{
"id": {
"$id": "558d06e9ea228663008b6943"
},
"title": "คลองท่อมใต้"
},
{
"id": {
"$id": "558d06e9ea228663008b6945"
},
"title": "คลองพน"
},
{
"id": {
"$id": "558d06e9ea228663008b6946"
},
"title": "ทรายขาว"
},
{
"id": {
"$id": "558d06e9ea228663008b6947"
},
"title": "พรุดินนา"
},
{
"id": {
"$id": "558d06e9ea228663008b6949"
},
"title": "ห้วยน้ำขาว"
},
{
"id": {
"$id": "558d06e9ea228663008b6948"
},
"title": "เพหลา"
}
]
},
{
"id": {
"$id": "558d06e8ea228663008b65c7"
},
"title": "ปลายพระยา",
"parish": [
{
"id": {
"$id": "558d06e9ea228663008b6955"
},
"title": "คีรีวง"
},
{
"id": {
"$id": "558d06e9ea228663008b6956"
},
"title": "ปลายพระยา"
},
{
"id": {
"$id": "558d06e9ea228663008b6954"
},
"title": "เขาต่อ"
},
{
"id": {
"$id": "558d06e9ea228663008b6953"
},
"title": "เขาเขน"
}
]
}
]
},
{
"province": {
"id": {
"$id": "558d0783ea228661008b8587"
},
"title": "กรุงเทพมหานคร"
},
"district": [
{
"id": {
"$id": "558d0783ea228661008b8589"
},
"title": "คลองสาน",
"parish": [
{
"id": {
"$id": "558d0783ea228661008b85bd"
},
"title": "คลองต้นไทร"
},
{
"id": {
"$id": "558d0783ea228661008b85be"
},
"title": "คลองสาน"
},
{
"id": {
"$id": "558d0783ea228661008b85bf"
},
"title": "บางลำพูล่าง"
},
{
"id": {
"$id": "558d0783ea228661008b85c0"
},
"title": "สมเด็จเจ้าพระยา"
}
]
},
{
"id": {
"$id": "558d0783ea228661008b858a"
},
"title": "คลองสามวา",
"parish": [
{
"id": {
"$id": "558d0783ea228661008b85c1"
},
"title": "ทรายกองดิน"
},
{
"id": {
"$id": "558d0783ea228661008b85c2"
},
"title": "ทรายกองดินใต้"
},
{
"id": {
"$id": "558d0783ea228661008b85c3"
},
"title": "บางชัน"
},
{
"id": {
"$id": "558d0783ea228661008b85c4"
},
"title": "สามวาตะวันตก"
},
{
"id": {
"$id": "558d0783ea228661008b85c5"
},
"title": "สามวาตะวันออก"
}
]
}
]
}
]
}
}
```