public void FederatedQueryNotices() { IamAuthenticator authenticator = new IamAuthenticator( apikey: "{apikey}"); DiscoveryService service = new DiscoveryService("2019-04-30", authenticator); service.SetServiceUrl("{serviceUrl}"); var result = service.FederatedQueryNotices( environmentId: "{environmentId}", naturalLanguageQuery: "{naturalLanguageQuery}", collectionIds: new List <string> { "{collectionId}" } ); Console.WriteLine(result.Response); }
public void FederatedQueryNotices() { IamConfig config = new IamConfig( apikey: apikey ); DiscoveryService service = new DiscoveryService(versionDate, config); service.SetEndpoint(url); var result = service.FederatedQueryNotices( environmentId: environmentId, naturalLanguageQuery: naturalLanguageQuery, collectionIds: new List <string> { collectionId } ); Console.WriteLine(result.Response); }
public void FederatedQueryNotices() { TokenOptions tokenOptions = new TokenOptions() { IamApiKey = apikey, ServiceUrl = url }; DiscoveryService service = new DiscoveryService(tokenOptions, versionDate); var result = service.FederatedQueryNotices( environmentId: environmentId, naturalLanguageQuery: naturalLanguageQuery, collectionIds: new List <string> { collectionId } ); Console.WriteLine(result.Response); }