Class: MarketingSearchAPI

MarketingSearchAPI()

MarketingSearch API class with methods of fetching search results for ibm.com

Constructor

new MarketingSearchAPI()

Source:

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

Source:
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;
}