curl https://www.kubidi.com/app.php/api/v1/gettoken
-H "Content-Type: application/json"
-H "Authorization: Bearer $KUBIDI_API_KEY"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"token": "86c5ceb27e1bf441130299c0209e5f35b88089f62c06b2b09d65772274f12057"
}
JSON Response:
{
"httpcode": 400,
"message": "Payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Invalid Api Key"
}
curl https://www.kubidi.com/app.php/api/v1/products
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"products": [
{
"productid": 232223,
"productname": "Lemon tree",
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 329,
"productdescription": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"producttags": "plants fruits lemon",
"outofstock": 0,
"created_at": "2023-08-22 16:23:59",
"updated_at": "2023-08-22 16:23:59"
}
]
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X POST https://www.kubidi.com/app.php/api/v1/product/create
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
-d '{ ... payload ... }'
JSON Payload:
{
"productname": "Lemon tree",
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 329,
"productdescription": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"producttags": "plants fruits lemon",
"outofstock": 0
}
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X PUT https://www.kubidi.com/app.php/api/v1/product/update/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
-d '{ ... payload ... }'
JSON Payload:
{
"productname": "Lemon tree",
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 329,
"productdescription": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"producttags": "plants fruits lemon",
"outofstock": 0
}
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X DELETE https://www.kubidi.com/app.php/api/v1/product/delete/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl https://www.kubidi.com/app.php/api/v1/product/get/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"product":
{
"productname": "Lemon tree",
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 329,
"productdescription": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"producttags": "plants fruits lemon",
"outofstock": 0,
"created_at": "2023-08-22 16:23:59",
"updated_at": "2023-08-22 16:23:59"
}
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl https://www.kubidi.com/app.php/api/v1/posts
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"posts": [
{
"hash": "86c5ceb27e1bf441130299c0209e5f35b88089f62c06b2b09d65772274f12057",
"message": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"media": "lemontree-64e4e11fb5d43.jpeg",
"created_at": "2023-08-22 16:23:59"
}
]
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X POST https://www.kubidi.com/app.php/api/v1/post/create
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
-d '{ ... payload ... }'
JSON Payload:
{
"message": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"media": "lemontree-64e4e11fb5d43.jpeg",
"created_at": "2023-08-22 16:23:59"
}
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X DELETE https://www.kubidi.com/app.php/api/v1/post/delete/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl https://www.kubidi.com/app.php/api/v1/post/get/{hash}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"post":
{
"message": "Lemon tree in a Decorated Pot, made from artisans in the North of Thailand. High quality and good design",
"media": "lemontree-64e4e11fb5d43.jpeg",
"created_at": "2023-08-22 16:23:59"
}
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl https://www.kubidi.com/app.php/api/v1/inventory
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"items": [
{
"productid": 232223,
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 350,
"location": "( R024 ) second row near the lift",
"pieces": 10,
"created_at": "2023-08-22 16:23:59"
}
]
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl https://www.kubidi.com/app.php/api/v1/inventory/get/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
JSON Response:
{
"httpcode": 200,
"message": "success",
"item":
{
"productcategory": "Garden-Center",
"productsubcategory": "Rutaceae prunes",
"productmedia": "lemontree-64e4e11fb5d43.jpeg",
"productprice": 350,
"productdiscountedprice": 350,
"location": "( R024 ) second row near the lift",
"pieces": 10,
"created_at": "2023-08-22 16:23:59"
}
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}
curl -X PUT https://www.kubidi.com/app.php/api/v1/inventory/update/{id}
-H "Content-Type: application/json"
-H "Authorization: Bearer $TOKEN"
-H "userid: 283999"
-d '{ ... payload ... }'}'
JSON Payload:
{
"pieces": 2,
"location": "( R024 ) second row near the lift",
}
JSON Response:
{
"httpcode": 200,
"message": "success"
}
JSON Response:
{
"httpcode": 400,
"message": "Header or payload error"
}
JSON Response:
{
"httpcode": 401,
"message": "Unauthorized - Token expired"
}