Skip to content

guilhermechapiewski/yql-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yql-ios

yql-ios is an Objective-C library that provides YQL connectivity for your iOS applications.

YQL (Yahoo! Query Language) is an expressive SQL-like language that lets you query, filter, and join data across Web services. With YQL, apps run faster with fewer lines of code and a smaller network footprint.

Usage

Import YQL.h and YQL.m into your project. Use the query method to invoke YQL, passing the desired query as a parameter:

NSDictionary *results = [yql query:@"SELECT * FROM weather.forecast WHERE woeid=2502265"];

You will get a NSDictionary object containing the results. The structure of this dictionary is the same you would get from a query in the YQL console. You can use valueForKeyPath to access the desired data in the results structure:

NSLog(@"%@", [[results valueForKeyPath:@"query.results"] description]);

See it in action

This repository is an Xcode project that mimics the YQL console. You can run it on Xcode to see how it works.

About

Objective-C library that provides YQL connectivity for iOS applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published