Skip to content

Commit d10b1c4

Browse files
committed
Update README.md
1 parent 76317e4 commit d10b1c4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ YQL SDK is a useful library to access YaHoo public services via YQL (Yahoo Query
44

55
## Usage
66

7+
### Maven
8+
9+
```xml
10+
<dependency>
11+
<groupId>com.sdklite.yql</groupId>
12+
<artifactId>yql</artifactId>
13+
<version>0.0.1</version>
14+
</dependency>
15+
```
16+
17+
### Gradle
18+
19+
```gradle
20+
compile 'com.sdklite.yql:yql:0.0.1'
21+
```
22+
23+
### Example
24+
725
```java
826
final String YQL = "select * from weather.forecast where woeid in (select woeid from geo.places(1) where text=\"北京\") and u=\"c\"";
927

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

2543
});
26-
```
44+
```

0 commit comments

Comments
 (0)