OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM Issue with orocrm get contacts API call

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 3 weeks, 1 day ago.

  • Creator
    Topic
  • #40553

    jithin
    Participant

    I am using orocrm 4.0. When i try to make an API call from my sandbox account in http://OROAPPURL/api/doc/rest_json_api#get–api-contacts i am getting the contacts in my account. But when i try the same using PHP curl from CLI i am getting HTTP/1.1 401 Unauthorized. The headers are passed and the headrs are generated on all requests. The headers passed are –

    > Authorization:\ WSSE\ profile=”UsernameToken”
    > X-WSSE:\ UsernameToken\ Username=”myusername”,\ PasswordDigest=”i0OouCXMyjs1EoIdfP98ferE3ng=”,\ Created=”2019-09-24T17:25:57+05:30″,\ Nonce=”Z00zNjc0WE5yQlppTVJ1WE1PfdejTkJRSEMwPQ==”

    Can you please let me know if there is anything wrong in what I am doing?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #40599
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    The CURL example is broken in a sandbox, it is a known issue. Instead, you should build a request manually. See API Authentication to find what headers to send.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No