title: Yelp API "Bearer does not match"
body: <p>This is one of the most confusing errors I've ever encountered because this is supposed to be super simple. I'm trying to connect to the Yelp API. I've created an App and obtained my &quot;API Key&quot;. From there I:</p>
  <ol>
  <li><p>Went to postman, selected &quot;Bearer Token&quot; as the Authorization type, copied and pasted my enter API Key, and ran the test.</p>
  </li>
  <li><p>Used Yelp's PHP sample code from here: <a href="https://github.com/Yelp/yelp-fusion/blob/master/fusion/php/sample.php" rel="nofollow noreferrer">https://github.com/Yelp/yelp-fusion/blob/master/fusion/php/sample.php</a> with my copied and pasted API Key. I then ran the code.</p>
  </li>
  </ol>
  <p>Both tests returned the same error:</p>
  <pre><code>Fatal error: Curl failed with error #400: {&quot;error&quot;: {&quot;code&quot;: &quot;VALIDATION_ERROR&quot;, &quot;description&quot;: &quot;'Bearer' does not match '^(?i)Bearer [A-Za-z0-9\\\\-\\\\_]{128}$'&quot;, &quot;field&quot;: &quot;Authorization&quot;, &quot;instance&quot;: &quot;Bearer&quot;}} in /home/yelp.php on line 70
  </code></pre>
  <p>The API key is exactly 128 characters long &quot;IxxU...YXYx&quot;, and I copied and pasted it perfectly into both environments. I'm not doing anything special or custom. I didn't make any changes to either environment outside of pasting in that exact API Key string. I even refreshed the API Key to get a new one, and repeated both tests with the new API Key. Failed everywhere again. So what on earth could be the problem? Ugh. Thanks.</p>