Methods
(async, static) getResults(query) → {Promise.<any>}
Gets search results for marketing
Parameters:
Name | Type | Description |
---|---|---|
query |
string | Query string to pass to the service |
Returns:
Response data from ibm search
- Type
- Promise.<any>
Example
import { MarketingSearchAPI } from '@carbon/ibmdotcom-services';
async function getResults(query) {
const response = await MarketingSearchAPI.getResults(query);
return response;
}