Forum Discussion

KPNOnline's avatar
KPNOnline
Mentor
10 years ago

Getting mentions via API when posting message

We started building our own reply editor, and everything works fine (upload, posting etc).. All can be done through the API.

 

But I can't seem to find a way to create mentions.. When a user starts typing, it has to look for users 'containing' the input text.

 

So you would think, its possible to make a api call to /users.. Retrieving all the users which username starts with the typed text..

 

But the API v2 only matches on complete words, not partially.. 

 

Is there a way to do a SQL LIKE %text through the API? To retrieve users which username 'contains' the input text instead of a full match?

 

Thanks

2 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    10 years ago

    Hi KPNOnline

     

    did you try the steps detailed in this KB article ?

     

    Edit (fogot to answer the other part): for the partial user search, not sure about LiQL but you can use the REST v1 search for a partial text search.

     

    Let us know if it worked for you