How To Extract Data From Url Fetch Response
I implemented a fetch method using Google Script and it returns me the following log: [16-06-10 14:06:03:942 EEST] { 'accessToken': 'data', 'userId': 3096, 'created': '2016-0
Solution 1:
I think that even if the variable urlResponse look to be an object it will only return you some string value. You should try to do something like that:
var data = JSON.parse(urlResponse.getContentText());
Logger.log(data.accessToken);
Post a Comment for "How To Extract Data From Url Fetch Response"