Created
December 5, 2018 15:44
-
-
Save luismec90/9a72f877142fa6fbb0dac8f3405e99e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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