Em đang tìm hiểu về api và cách gọi api trên php . Em có xem tài liệu từ api mới đăng ký có mã CURL như sau :
curl -X POST "https://api.domain.io/v1/files/copy" \
-H 'Content-Type: application/json' \
-u your_private_key: -d '
{
"sourceFilePath" : "/path/to/file.jpg",
"destinationPath" : "/folder/to/copy/into/"
}
'
Nhờ mọi người trợ giúp dịch sang PHP giúp em . Em xin cảm ơn