• Edo Sargsyan
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi, I have registered in the developer.salesforce.com and want to connect rest api and get articles. I have done all steps using consumer key and consumer secret how is written in the documentation. After successfully authentication (OAuth) I have got access_token. Now I cannot get articles and I am getting this error [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]. This is my URL and Header parts.

https://eu12.salesforce.com/services/data/v38.0/support/knowledgeArticles?sort=ViewScore&channel=Pkb&pageSize=3
Content-Type: application/json; charset=UTF-8
Accept: application/json
Accept-Language: en-US
Authentication: OAuth 00D1r000000esNU!ARcAQNWSLQPIf_DOxKY4yNlkQ_doXITSfcfkj1vCAkSCIFdWMgIx.cDrBqSUFdsA3YmlBw4FKtJsyygyMncUlcKjSQQ.HPc4
User-added image
Hi, I have registered in the developer.salesforce.com and want to connect rest api and get articles. I have done all steps using consumer key and consumer secret how is written in the documentation. After successfully authentication (OAuth) I have got access_token. Now I cannot get articles and I am getting this error [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]. This is my URL and Header parts.

https://eu12.salesforce.com/services/data/v38.0/support/knowledgeArticles?sort=ViewScore&channel=Pkb&pageSize=3
Content-Type: application/json; charset=UTF-8
Accept: application/json
Accept-Language: en-US
Authentication: OAuth 00D1r000000esNU!ARcAQNWSLQPIf_DOxKY4yNlkQ_doXITSfcfkj1vCAkSCIFdWMgIx.cDrBqSUFdsA3YmlBw4FKtJsyygyMncUlcKjSQQ.HPc4
User-added image