php - File Upload Egnyte API -
i trying upload file business relationship via egnyte api. curl command says:
curl -v --request post\ -h "authorization: bearer 2v8q2bc6uvxtgghwmwvnvcp4"\ --upload-file\ ~/desktop/test.txt https://acme.egnyte.com/pubapi/v1/fs-content/shared/documents/test.txt
can someone, tell how can post via php , json response returned curl call?
egnyte has sample code showing how upload file using php , curl available here: https://developers.egnyte.com/samplecode.
take @ egnyteclient.php file in anonymous php uploader sample.
the curl request posted sample website , intended run command line. utilize on domain, create sure following:
change token 2v8q2bc6uvxtgghwmwvnvcp4 1 obtain authentication endpoint. update references sample 'acme' domain egnyte domain. change path file uploading , path want uploaded in egnyte. php rest
No comments:
Post a Comment