API app key query

Hello Team,

Good day!

I'm seeking for your help on the below query:

Is this a normal behavior for the API- the client needs to enter the APPKEY in ld.open_session() to be able to run ld.get_history.

Our client also mentioned that this is not the same for ld.get_data where he only needs to run ld.open_session() without specifying appkey.

In other words, app key details should be entered in running the get history function, but it's working fine when the client is only using the get_data function.


Could you please check and advise?

Thank you very much!

Answers

  • Gurpreet
    Gurpreet admin
    edited May 22

    Hello @Janice

    AppKey is required when the LD library is used in a local environment when using the Desktop session. It is not needed when using the library in the codebook environment.

    If the key is needed, then it has to be provided when creating a session, or else the session will not open. Then all the API calls - get_data and get_history will use this particular session.

    PS: You can encourage the user to directly ask the question here.