Skip to content

Instantly share code, notes, and snippets.

@luismec90
Created December 5, 2018 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luismec90/9a72f877142fa6fbb0dac8f3405e99e0 to your computer and use it in GitHub Desktop.
Save luismec90/9a72f877142fa6fbb0dac8f3405e99e0 to your computer and use it in GitHub Desktop.
import axios from 'axios'
import { yotpoApiKey } from 'shared/Constants';
import assetUrl from 'shared/components/AssetUrl';
export const getYotpopReviews = (productId) => {
return axios.get('https://api.yotpo.com/v1/widget/' + yotpoApiKey + '/products/' + productId + '/reviews.json');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment