OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM Issue with orocrm get contacts API call

This topic contains 1 reply, has 2 voices, and was last updated by  Andrey Yatsenko 2 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #40553


    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
  • #40599

    Andrey Yatsenko

    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)

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top

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

Yes No

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

Yes No