-2

when i run this in terminal

curl https://api.box.com/2.0/folders/{id}/items?limit=100&offset=0 -H "Authorization: Bearer access_token" 

with valid access_token it gives me this response.

If '-H' is not a typo you can run the following command to lookup the package that contains the binary: 
command-not-found -H 
-bash: -H: command not found 

I am using SUSE Linux Enterprise Server 11 SP3.

fedorqui
  • 275,237
  • 103
  • 548
  • 598
Nitesh Selkari
  • 1,367
  • 3
  • 9
  • 10
  • 1
    You probably have to escape them: `curl https://xxxx\&yyyy` etc. – fedorqui Apr 02 '15 at 11:27
  • Thanks fedorqui..it worked for me... I did this : curl https://api.box.com/2.0/folders/{id}/items\?limit=100\&offset=0 -H "Authorization: Bearer access_token" – Nitesh Selkari Apr 02 '15 at 11:41

1 Answers1

1

All these characters you mention have to be escaped to prevent them from being interpreted by bash.

So for example instead of:

curl https://www.example.com/r?v=1&w=2

You need to use:

curl https://www.example.com/r\?v=1\&w=2
                              ^^   ^^

In your case:

curl https://api.box.com/2.0/folders/\{id\}/items\?limit=100\&offset=0 -H "Authorization: Bearer access_token" 
                                     ^^  ^^      ^^         ^^
fedorqui
  • 275,237
  • 103
  • 548
  • 598