Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Symphony REST API Search Rooms Query Problem

Hi,

I have a question on writing the "query" params in Search Rooms request. Im using C# httpclient, and I want to search all chat rooms that a certain member in but I dont know what should I put into the query (meaning that I dont want to be limited to chat room names and certainly I can't put nothing in it). Please help

var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("https://your-pod-subdomain.symphony.com/pod/v3/room/search?skip=0&limit=50"),
    Headers =
    {
        { "accept", "application/json" },
				{ "sessionToken", "123456" },
    },
    Content = new StringContent("{\"member\":{\"id\":123456789},\"query\":\"What should I put here?\"}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
  
  
Posted one year ago
Edited one year ago
Votes Newest

Answers


Hi,
The Search Rooms request is used to find rooms containing a particular query string. Where the search query is used to reference room names or room descriptions. More information on this endpoint cn be found here https://developers.symphony.com/restapi/reference/search-rooms-v3

The endpoint you would need to use to query all the streams a user is a member of would be the following, https://developers.symphony.com/restapi/reference/list-user-streams

However this will only return results for the calling user (e.g your bot's Service Account). In order to call this endpoint on-behalf-of another user you will need to use OBO with the LIST_USER_STREAMS permission. More information on OBO can be found here https://docs.developers.symphony.com/building-extension-applications-on-symphony/app-authentication/obo-authentication

  
  
Posted one year ago
Vinay Mistry
23 × 2 Administrator
8K Views
1 Answer
one year ago
one year ago
Tags