Best Answer

Getting user data with a webhook

  • 19 December 2022
  • 3 replies
  • 174 views

Hey all

I have been trying to wrap my brain around this issue for a week or so now. I have been trying to get a userid from a webhook in an HTML learning object so that we can call more data using the “get user’s info” API from the API explorer, but nothing I try works. I am using Marketo to create my webhook and have tried to query the username just for testing and all I get back is ‘ {username} ‘ back. If anyone has accomplished something like this in the past some help would be greatly appreciated.

icon

Best answer by Bfarkas 19 December 2022, 18:51

View original

3 replies

Userlevel 7
Badge +3

I have done this many times using several platforms, not marketo specifically. How are you managing the access/authentication to perform the request? Can you talk more expressly about your precise setup? What is the intended user flow for interaction and data passing? On initial from your description above, webhook does not seem the way to do necessarily, at least from Docebo’s side. 

The idea is we are using an external app for some assessments because of security concerns. So we wanted to have the learner click a button or a link in an HTML learning object, which would make a call for a userID, then that would be used to send to the 3rd party app, and then it will make another call using the userID to get their name and email so the app knows who is taking the assessment. I believe we can take care of the auth with SSO (though I am not 100% sure on that).

Userlevel 7
Badge +3

The idea is we are using an external app for some assessments because of security concerns. So we wanted to have the learner click a button or a link in an HTML learning object, which would make a call for a userID, then that would be used to send to the 3rd party app, and then it will make another call using the userID to get their name and email so the app knows who is taking the assessment. I believe we can take care of the auth with SSO (though I am not 100% sure on that).

Right, so webhooks don’t seem quite the right path.

I do this using the iframe widgets currently, if you turn on the advanced function you can have it use an oauth app to it. Then when the frame loads a few things get appended to the end of the URL, the user’s docebo ID, and a temporary code that can be exchanged for a valid API session Token which can then be used to do the calls to get other information. I do this flow a lot using qualtrics so I imagine marketo can do the same, but are generally just post requests back and forth in real time instead of waiting for the webhooks to trigger.

Reply