Download Items to Windows Server without using Box Sync
Hello Experts :
I am looking for a solution that can copy anything in the Box folder to my Windows Server. Can anyone advice me what path should i take ?
I initially started to work with Curl script . but i am not going any further with that :
PS C:\> curl https://api.box.com/2.0/files/6***phone number removed for privacy***/content-H "Authorization: Bearer bYSqw2ZnclRnEmWipa4gsDSGiO
"
Invoke-WebRequest : A positional parameter cannot be found that accepts argument 'Authorization: Bearer
bYSqw2ZnclRnEmWipa4gsDSGiONPd66u'.
At line:1 char:1
+ curl https://api.box.com/2.0/files/6***phone number removed for privacy***/content-H "Authorizati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
If someone can point me to right direction, highly appreciate . thank you.
-
Hi ,
I think the Box Command Line Interface (CLI) would be a good fit for you! See docs here:
https://developer.box.com/v2.0/docs/box-cli
Please sign in to leave a comment.
Comments
2 comments