Integrating to C# the case/screeningRequest - Unauthorized error

Options

@Irfan.Khan hi Sir.. this is another issue for unauthorized error in regards to postman everything works okay, however implementing it somehow presumes error..can you help me about this?
I think the problem is about generating the hmac value.

This is the dataTosign:

image

and given a secret key here is my hmac value:

image

I will follow up the authorization and how i call it

Best Answer

  • Irfan.Khan
    Irfan.Khan LSEG
    Answer ✓

    cusersu6068964desktopsync-screening-c.zip

    @moe.alharazi

    I have checked the request headers and see that the content length and the HMAC to be incorrect in this request.

    I am attaching a C# code for sync screening request that will guide you on how to calculate the correct content length and the HMAC signature.

    You can run the code in Visual Studio to see how the response headers are being passed to the API server for a success response and likewise write your own code to achieve the same.

    Kindly let me know if this was helpful.

    Kindly note the attached code is only for reference purpose and we advise our client not to use it in their production server.

Answers