There are some books in yandex-disk that is public.The disk link is here.I want to make get request to retrieve some data from it. I am using axios in react to make get request and my code is like that as yandex documentation mentioned.My question is how to find path and public key from that disk that is public.Also how to make right get request to retrieve data?
import './App.css';
const axios = require('axios');
function App() {
// Make a request for a user with a given ID
const path = '?';
const publicKey = '?';
axios
.get(
`https://cloud-api.yandex.net/v1/disk/public/resources/download?public_key=${publicKey}&path=${path}`
)
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
});
return (
<div className="App">
<h1>Eksi Kitap</h1>
</div>
);
}
export default App;