You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

No access to CP CoreApi

edited Dec 10, 2024 4:17PM in Communication Channels 1 comment

We have Email Address Sharing enabled in our side and thus we need to be able to modify the Logic by which Oracle selects a Contact when a not logged in user starts a chat.

When going through the /core/ code I found that in the Chat Model the authenticateChat() function takes care of sending the data to the ChatServer and creating the JWT. I created my own copy of this Model so I can modify the logic, however I have the following problem:

There is a CoreApi function used: $apiResult = CoreApi::chat_contact_auth_generate($chatType);
This function returns a session and JWT. Unfortunately it seems that I am not authorized to call this function from the Custom Models folder, as I get the following error:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!