unsplash api returns The data couldn't be read because it is missing. code example
Example: where to put acccess key and secret of unsplash using axios
fetchInitialImages = () => {this.setState({ searchedQuery: 'Curated Collection'})axios.get(`${this.ROOT}photos${this.KEY}${this.PERPAGE}&page=1`) .then(res => { let results = res.data this.setState(() => { return { gallery: [...results] } }, () => { console.log('this.state.gallery = ', this.state.gallery)}) }) .catch(error => console.log(error))}