How to use the @commercetools-frontend/sdk.actions.post function in @commercetools-frontend/sdk

To help you get started, we’ve selected a few @commercetools-frontend/sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / merchant-center-application-kit / packages / application-shell / src / components / performance-timing / actions.js View on Github external
export const pushMetricHistogram = ({ payload }) =>
  sdkActions.post({
    uri: '/metrics/histograms',
    mcApiProxyTarget: MC_API_PROXY_TARGETS.MC_METRICS,
    payload: JSON.stringify(payload),
  });
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / login / login.js View on Github external
requestAccessToken: payload =>
    dispatch(sdkActions.post({ uri: `/tokens`, payload })),
});
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / version-tracker / actions.js View on Github external
export const pushDependencyVersionCounter = ({ payload }) =>
  sdkActions.post({
    uri: '/metrics/counters',
    mcApiProxyTarget: MC_API_PROXY_TARGETS.MC_METRICS,
    payload: JSON.stringify(payload),
  });
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / quick-access / quick-access.js View on Github external
pimSearchProductIds: searchText =>
      dispatch(
        sdkActions.post({
          uri: `/${ownProps.applicationContext.project.key}/search/products`,
          mcApiProxyTarget: MC_API_PROXY_TARGETS.PIM_SEARCH,
          payload: {
            query: {
              fullText: {
                field: 'name',
                language: ownProps.applicationContext.dataLocale,
                value: searchText,
              },
            },
            sort: [
              {
                field: 'name',
                language: ownProps.applicationContext.dataLocale,
                order: 'desc',
              },