Hi,
I am new to web and sentry.
Is there any one who can Guide me to Retried data from the Senty.io
we have a dashboard and want to display the Crash related information into it.
I was reading https://docs.sentry.io/api/
to understand to use the APIs.But,Unfortunately, did not understand much.
I managed to create the Authentication token
could anybody guide me to proceed further
Example:
- how communicate to the Senty.io from my application.
- how to fetch the data from sentry.
Thanks in advance
Any Thought on this ?
router.get(’/getAccessToken’, (req, res) => {
let request = require(“request”);
let options = {
method: ‘POST’,
url: ‘https://sentry.io/api/2/projectID’,
headers: {
‘Bearer’: process.env.SENTRY_AUTH_TOKEN,
‘cache-control’: ‘no-cache’
}
};
request(options, (error, response, body) => {
if (error) {
console.log(error);
}
try{
let result = JSON.parse(body);
authorization = 'Bearer ’ + result.Token;
res.send(authorization);
}
catch(error){
console.log(error.message);
}
});
});
does the data
returned by request
API contains Token
?