OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM Connect the API

This topic contains 3 replies, has 2 voices, and was last updated by  Tyler 4 years, 1 month ago.

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

  • Creator
    Topic
  • #30775

    Tyler
    Participant

    Hi,

    I got one ORCRM and one ORCOMMERCE.
    On my orocommerce, I create some API.

    So, I would like to request these API from my OROCRM.
    But I dont know how to be authenticate from orocrm to orocommerce.

    I know how to generate a wsse header in locale mode in cli with command line.

    So on orcrm I can generate the own wsse and same on orocommerce.

    But i dont know how to generate the wsse header of orocommerce from orocrm.

    Can you help me plz.

    Thx in advance.

    Tyler.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #30776

    jderdziak
    Participant

    Hello Tyler,

    You need to pass it through the header. Here you can find more details:

    https://oroinc.com/orocrm/documentation/2.3/book/data-api#authentication

    Best regards
    Jakub

    #30777

    Tyler
    Participant

    So, I try, to generate my authenticate orocrm to orocommerce with wsse header in local like that :
    https://oroinc.com/orocrm/documentation/1.10/cookbook/how-to-use-wsse-authentication

    But I always got a 401, like if authenticate didn’t works.

    So I try with postman and the header generated by my code. It works well.
    May are they something else to do ?
    My I didn’t use correctly Guzzle ?

    #30778

    Tyler
    Participant

    SO, the problem is from guzzle.
    In my OroCrm, the is guzzle version is v3.7.4
    And this version set by default the CURLOPT_RETURNTRANSFER at false.
    But we need to pass it at true.
    Then I used another lib “romanpitak/php-rest-client v1.2.1” and it’s works easily !

Viewing 3 replies - 1 through 3 (of 3 total)

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

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

Yes No