You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using layer api when we try to create a distinct conversation, it can either return an existing conversation or create a new one. If it returns an existing conversation status is 200 and when it creates one the status is 201. We've a unique requirement where we want to know if the conversation was created or returned. And based on that we need to add metadata. Is it possible to expose this attribute on the Layer::Conversation object?
The text was updated successfully, but these errors were encountered:
Unfortunately, that's not possible right now. I also feel like having an attribute like this on the conversation object is kind of weird. What about this instead:
Right now, the Layer::Client just returns the JSON hash of the request. I think returning a proper response object that behaves like the JSON hash but also stores other information about the response would make sense. In your use case, you could just use the client directly to create new conversations within Layer and pass the response to Layer::Conversation.from_response.
Using layer api when we try to create a distinct conversation, it can either return an existing conversation or create a new one. If it returns an existing conversation status is
200
and when it creates one the status is201
. We've a unique requirement where we want to know if the conversation was created or returned. And based on that we need to add metadata. Is it possible to expose this attribute on theLayer::Conversation
object?The text was updated successfully, but these errors were encountered: