#john_api

1 messages ¡ Page 1 of 1 (latest)

plush elbowBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1341879151744913539

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

timber moat
#

Hello there

#

Ah sorry, you are saying you are using the Retrieve VerificationReport endpoint using that Verification Report ID but then the response is null?

twin quartz
#

I am not using any endpoints, rather processing the webhook event.

#

VerificationReport theVerificationReport = verificationSession.getLastVerificationReportObject();
VerificationSession.VerifiedOutputs theVerifiedOutputs = verificationSession.getVerifiedOutputs();

#

both of the above calls returns NULL

#

however, the last verification report id is present:
"last_verification_report": "vr_1Qu4RN2LjNH6sc0XN29QFaBI",

timber moat
#

Hmm that's strange...

twin quartz
#

yes

#

here is the webhoook event id, if you can find anything more:
"id": "evt_1Qu4RO2LjNH6sc0XnbUKKkdc",

timber moat
#

Yeah no I clearly see the last_verification_report present in that Event

#

Can you show me how you initialize verificationSession?

#

Oh

#

Wait

#

It is getLastVerificationReport()

#

You are doing getLastVerificationReportObject();

twin quartz
#

VerificationReport theVerificationReport = verificationSession.getLastVerificationReportObject();

#

this is what I am doing

timber moat
#

See above

#

Remove Object

twin quartz
#

I want the object as it has necessary data

#

getLastVerificationReport() gives the id of the object.

timber moat
#

You need to expand to get the full object

twin quartz
#

how do I do that?

timber moat
twin quartz
#

but, I am processing the webhook event. I am not querying or retrieving

timber moat
#

You either need to make a separate request to retrieve the Verification Report, or you retrieve the Verification Session and expand last_verification_report

#

Right, you have to make a separate request when you receive the Webhook

#

Webhooks will never contain expanded properties

#

That's just how it works.

#

It is common for an integration to receive a Webhook and then retrieve that same object and expand relevant properties that you care about.

twin quartz
#

I see.
so, I can get VerificationReport by querying using its ID.
how about VerificationSession.VerifiedOutputs? how do I get that?

timber moat
#

So really you should just retrieve the Verification Session and expand both the last_verification_report and verified_outputs.

twin quartz
#

got it.
so, on receiving the webhook.
use the verificationSession id on the webhook event to query the VerificationSession object and use expansion parameters in the retrieval query

#

is that correct?

timber moat
#

Yep exactly

twin quartz
#

thank you @timber moat