--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/4a62ec2f-94fa-4f97-b993-187b140a1397%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
exports.home = function(req, res) { console.log('Request: ' + req.query.code)
var options = { host: 'www.rdio.com' , path: '/oauth2/token' , method: 'POST' , headers: { 'Content-Type': 'application/x-www-form-urlencoded' , 'Content-Length': 0 , 'Authorization': 'Basic 3OUutphWh4HtZu_iRQPcMA:9_dDUANmJ-7fly_9XrLD3g' } } var req = http.request(options, function(res) { console.log('Response from oauth2: ' + res.statusCode) res.on('data', function(chunk) { console.log('BODY: ' + chunk) console.log('HEADERS: ' + JSON.stringify(res.headers)); }) }) req.on('error', function(e){ console.log('problem with request: ' + e.message) }) req.end() res.render('index.html')}
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/1126c12b-9119-43c1-baec-ccbaa6d4c269%40googlegroups.com.
Response from oauth2: 400
BODY: {"error_description": "missing grant_type parameter", "error": "invalid_request"}
exports.home = function(req, res) { var code = req.query.code console.log('Request: ' + code) var authCode = new Buffer('CLIENT_ID:CLIENT_SECRET').toString('base64') console.log('AuthCode: ' + authCode) // var params = { // grant_type: 'authorization_code' // , authorization_code: code // , redirect_uri: 'http://localhost:3000/home' // }
var options = { host: 'www.rdio.com'
, path: '/oauth2/token' // + '?' + qs.stringify(params) , method: 'POST' // , grant_type: 'authorization_code' // , authorization_code: code // , redirect_uri: 'http://localhost:3000/home'
, headers: { 'Content-Type': 'application/x-www-form-urlencoded' , 'Content-Length': 0
// , 'grant_type': 'authorization_code' // , 'authorization_code': code // , 'redirect_uri': 'http://localhost:3000/home' , 'Authorization': 'Basic ' + authCode
} } var req = http.request(options, function(res) { console.log('Response from oauth2: ' + res.statusCode) res.on('data', function(chunk) { console.log('BODY: ' + chunk) console.log('HEADERS: ' + JSON.stringify(res.headers)); }) }) req.on('error', function(e){ console.log('problem with request: ' + e.message) })
// req.write(qs.stringify(params)) req.end() res.render('index.html')}
POST /oauth2/token HTTP/1.1
Host: www.rdio.com
Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=19QMZODbnTJlrG5nnTSfyQ
&redirect_uri=http://example.com/oauth
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/5a2493ef-59c7-401e-b366-a0f7b9177542%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/1a1cdd32-24f3-4655-a5c8-c211a6de674a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/6ad49ae8-2098-4fe7-b438-f0bac2c7dc7e%40googlegroups.com.
We've nearly got our app up and running but continue to receive this error on oauth 2.0
in POST request "https://www.rdio.com/api/1/getAccessTokenScope" I got status "401 UNAUTHORIZED" with response "{"error_description": "Client lacks the permission to make this call", "error": "insufficient_scope"}"
Does anyone know what is happening?
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/b77238f9-5ff5-46bc-8eeb-6b43a555f4a1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/00b27636-f41f-499a-a21a-efd72dca2307%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/bf3d9486-9bb1-4be9-b683-1b8dc050e926%40googlegroups.com.
We've been hard at work on a new JavaScript API to replace the existing Web Playback API. Instead of a Flash component, it uses an iframe to communicate with rdio.com, and provides not only playback but full access to the Web Services API with a slick authentication mechanism that allows you to make authenticated calls with nothing but client-side JavaScript.
This new API paves the way for several features that have been requested here, including playback on mobile web and using your web app to remote control Rdio. Unfortunately neither of those features are ready yet, but they're in the works.
We do feel the API is ready, however, for some brave early adopters to get in and start kicking around. It's already plenty capable, and we'd love to hear what you think of it.
So, who's in? If you're interested, please send an email to develope...@rd.io with "New Rdio JavaScript API" in the subject line. Depending on the response we may not let everyone in right away, but rest assured you'll be on the list.
Thank you,
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/e076b8a6-605e-4e4a-b1ff-2a91acadd4c1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/44dce048-74a4-42df-8590-1315eccc4d88%40googlegroups.com.
From: Ian Gilman Sent: Thursday, September 10, 2015 12:15 AM To: rdio...@googlegroups.com; Gaurav Dixit Subject: Re: [rdio-api] Call for Testers: New Rdio JavaScript API |
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/20150909184825.29134935.39519.1473%40gmail.com.
From: Ian Gilman Sent: Thursday, September 10, 2015 11:02 PM |
--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/160de489-b7ae-43b6-b082-75dbf6b3031a%40googlegroups.com.