Forum Discussion

Zeroeffect's avatar
Zeroeffect
New Member
4 years ago
Solved

Get data from REST API with oAuth-Token, returns couldn't authenticate with the credentials provided

Hi,   I'm trying to connect to a Rest API from Sugar CRM (sugarcrm). I'm using the  example from Chris Coester; Get Data from Twitter API with Power Query and I have updated the code slightly wit...
  • Zeroeffect's avatar
    4 years ago

    Hi again!

     

    I found the solution!!! With a lot of help from my friends!

     

    It's a really small and annoying error. 
    This row:

     AccessTokenHeader = "bearer " & AccessToken,

    should be replaced with this row:

     AccessTokenHeader = "Bearer " & AccessToken,

    Do you see the difference? Bearer should start with a capital B

     

    I hope this helps someone!