Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonlee committed Jul 4, 2016
1 parent 76317e4 commit d10b1c4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ YQL SDK is a useful library to access YaHoo public services via YQL (Yahoo Query

## Usage

### Maven

```xml
<dependency>
<groupId>com.sdklite.yql</groupId>
<artifactId>yql</artifactId>
<version>0.0.1</version>
</dependency>
```

### Gradle

```gradle
compile 'com.sdklite.yql:yql:0.0.1'
```

### Example

```java
final String YQL = "select * from weather.forecast where woeid in (select woeid from geo.places(1) where text=\"北京\") and u=\"c\"";

Expand All @@ -23,4 +41,4 @@ Yql.getInstance().query(YQL, new Yql.Callback<Yql.Result<Weather.Forecast>>() {
}

});
```
```

0 comments on commit d10b1c4

Please sign in to comment.