FAQ Database Discussion Community


Parse Returned Text into JSON Object in Swift?

json,swift,yql
Solved: I was able to solve the problem in question with this: if let returnedData = NSJSONSerialization.JSONObjectWithData(data, options: nil, error: nil) as? NSString? { let dataString = NSString(data: data!, encoding: NSUTF8StringEncoding)! let trimmedDataString = ((dataString.stringByReplacingOccurrencesOfString("YAHOO.Finance.SymbolSuggest.ssCallback", withString: "") as NSString).stringByReplacingOccurrencesOfString("(", withString: "") as NSString).stringByReplacingOccurrencesOfString(")", withString: "") let dataFromDataString =...

YQL returns application/javascript even when format=json is requested

javascript,json,spring,spring-boot,yql
I am trying to make a REST call to YQL in a Spring Boot application. Even when I set 'format=json', the call returns 'application/javascript' which results in this message: org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class com.dilteam.research.YqlQueryResult] and content type [application/javascript;charset=utf-8] Here's the method...

No head section when requesting page via YQL API

proxy,yql,head
I'm trying to get the full page via yahoo YQL API, in order to access metadata fields defined in the target page head section (specifically open graph metadata). My example URL: http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http://www.google.com%22&format=xml But it does not contain any metadata parameters...is there another way to call this Yahoo API to include...

Angularjs $http for YQL not working?

angularjs,yql
I am a newbie angular js developer. Recently i am trying to build an application that uses Yahoo Query Language (YQL). I actually need the cricket.teams data from the data table. So, i am just making a $http resquest from the controller of the angularjs with the REST Query provides...

YQL not calling callback function when querying Google Drive

javascript,google-docs,yql
This is my first time using YQL for a project, so apologies if I'm making a stupid error. I'm trying to use YQL to get a list of the contents of a publicly viewable Google Drive folder, which I can then manipulate via Javascript. I'm basing my JavaScript very closely...

iteration, JSON and callback in JS

javascript,json,callback,jsonp,yql
(translation with Google Traductor) Hi, I'm learning javascript, and I was trying to simulate the change that occurs in the stock quotes on page yahoo finance. I was reading many responses from stackoverflow page, and I did this. http://js.do/code/53880 If you are using google chrome, after about a minute into...