export function fetchNeedInfo()

in lib/bzapi.js [94:111]


export function fetchNeedInfo(email) {
  const apiParams = { ...needsInfoParams, ...webExtOnlyParams };
  apiParams.v2 = email;

  const apiURL = `${baseAPIURL}?${queryString.stringify(apiParams)}`;
  return serverSWR(
    apiURL,
    async () => {
      const result = await fetch(apiURL, {
        headers: { 'Content-Type': 'application/json' },
      });
      return result.json();
    },
    {
      hashKey: true,
    },
  );
}