title: cURL error Couldn't resolve host 'Bearer'
body: <p>I'm trying to connect to the Adobe Analytics found <a href="https://marketing.adobe.com/developer/documentation/analytics-live-stream/data-requests" rel="nofollow noreferrer">here</a> </p>
  
  <p>I've managed to generate an auth token using the below request:</p>
  
  <blockquote>
    <p>curl -i -v "<a href="https://api.omniture.com/token" rel="nofollow noreferrer">https://api.omniture.com/token</a>" -u 'my-user' -d "grant_type=client_credentials"</p>
  </blockquote>
  
  <p>I then copy the whole object thats returned which looks something like this:</p>
  
  <pre><code>{
    "access_token": "some-really-long-access-token",
    "expires_in": 3600,
    "token_type": "bearer",
    "scope": "livestream",
    "success": true
  }
  </code></pre>
  
  <p>and paste it into the following cURL:</p>
  
  <blockquote>
    <p>curl --location --compressed --header “Authorization: Bearer [{"access_token":"some-really-long-access-token","expires_in":3600,"token_type":"bearer","scope":"livestream","success":true}]” [<a href="https://livestream.adobe.net/api/1/stream/myendpoint]" rel="nofollow noreferrer">https://livestream.adobe.net/api/1/stream/myendpoint]</a></p>
  </blockquote>
  
  <p>The error i'm getting is:</p>
  
  <pre><code>Couldn't resolve host 'Bearer'
  </code></pre>
  
  <p>I'm fairly new to cURL so not sure if there is an obvious error here? Will most likely be down to the way i'm sending the data over...</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>After the answer written below this is the error message i'm getting:</p>
  
  <pre><code>curl: (6) Couldn't resolve host 'Bearer'
  curl: (6) Couldn't resolve host 'some-really-long-auth-key
  invalid authorization header
  </code></pre>