How to do axios request to do authorization?

436 views
Skip to first unread message

kunals...@gmail.com

unread,
Mar 12, 2018, 1:04:20 AM3/12/18
to Feedly Cloud
How do you make a request to get authorization for the feedly api?
I am trying to use Axios (JS library). I want to be able to get the auth token from the request but i am very lost?
Thanks

Kunal Sinha

unread,
Mar 12, 2018, 1:09:44 AM3/12/18
to Feedly Cloud
My current code is:

axios({
method: "get",
client_id: "sandbox",
client_secret: "e4RK9ybUMPAa5PgV",
redirect_uri: "http://localhost:8080"
})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});

David Chatenay

unread,
Mar 12, 2018, 3:23:08 AM3/12/18
to Kunal Sinha, Feedly Cloud
  Hi Kunal,
  The simplest way to generate an access token is to generate a developer token.
  This token can be pass in the "Authorization" request header, as explained here.
  If you are trying to build an application that other Feedly users can use, you'll need to build an OAuth login flow to get access tokens/refresh tokens. The API keys for this in the top post in this forum ("Keys to access the Feedly development sandbox"). But please read carefully the bottom paragraph: we do not automatically issue new API keys for every app.
  Hope this helps,


-- 
David Chatenay
Feedly

--
You received this message because you are subscribed to the Google Groups "Feedly Cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to feedly-cloud+unsubscribe@googlegroups.com.
To post to this group, send email to feedly...@googlegroups.com.
Visit this group at https://groups.google.com/group/feedly-cloud.
To view this discussion on the web visit https://groups.google.com/d/msgid/feedly-cloud/26a0a60a-f51f-4ff3-9e8b-5fc60f39c2f0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages