cURL Example

Version 1.8 (อัพเดทล่าสุด 30 กรกฎาคม 2024)

File Example

				
					curl --location --request 'http://api.slipok.com/api/line/apikey/<YOUR_BRANCH_ID>' \
 --header 'x-authorization: <YOUR_KEY>' \
 --form 'files=@"<YOUR_FILE_LOCATION>"' \
 --form 'log=true'

				
			

Data Example

				
					curl --location --request 'http://api.slipok.com/api/line/apikey/<YOUR_BRANCH_ID>' \
 --header 'x-authorization: <YOUR_KEY>' \
 --header 'Content-Type: application/json' \
 --data '{
   "data": "<YOUR_QR_DATA>",
   "log": true
 }'

				
			

Url Example

				
					curl --location --request 'http://api.slipok.com/api/line/apikey/<YOUR_BRANCH_ID>' \
 --header 'x-authorization: <YOUR_KEY>' \
 --header 'Content-Type: application/json' \
 --data '{
   "url": "<YOUR_IMAGE_URL>",
   "log": true
 }'