Skip to content

Commit

Permalink
Version 0.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
vsima committed Mar 25, 2015
1 parent 48c72a4 commit 735b7d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,31 @@ Download

Download [the latest JAR][1] or grab via Gradle:
```groovy
compile 'com.victorsima:uber-java-client:0.0.1'
compile 'com.victorsima:uber-java-client:0.0.2'
```
or Maven:
```xml
<dependency>
<groupId>com.victorsima</groupId>
<artifactId>uber-java-client</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</dependency>
```

Usage
-----
```java
UberClient client = new UberClient("v1", "YOUR_OAUTH_ID", "YOUR_OAUTH_SECRET", RestAdapter.LogLevel.BASIC);
client.setServerToken("YOUR_SERVER_TOKEN");
UberClient client = new UberClient("YOUR_OAUTH_ID", "YOUR_OAUTH_SECRET", "YOUR_OAUTH_REDIRECT_URI", RestAdapter.LogLevel.BASIC);
```
####Synchronous api call

```java
UberClient client = new UberClient("YOUR_SERVER_TOKEN", RestAdapter.LogLevel.BASIC);
```
####Synchronous api call to products
```java
Products products = client.getApiService().getProducts(40.74844,-73.985664);
```
####Asynchronous api call
####Asynchronous api call to products
```java
client.getApiService().getProducts(40.74844, -73.985664, new Callback<Products>() {
@Override
Expand All @@ -52,7 +55,7 @@ To run tests against a mock api server:
./gradlew test
```

To run tests against the uber sandbox server (First populate uber.properties with your own info):
To run tests against the uber sandbox server (First populate uber.properties with your own developer info):

```shell
./gradlew testSandbox
Expand Down Expand Up @@ -89,5 +92,5 @@ License
THE SOFTWARE.


[1]: http://repo1.maven.org/maven2/com/victorsima/uber-java-client/0.0.1/uber-java-client-0.0.1.jar
[1]: http://repo1.maven.org/maven2/com/victorsima/uber-java-client/0.0.1/uber-java-client-0.0.2.jar

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'signing'
sourceCompatibility = 1.7
group = "com.victorsima"
archivesBaseName = "uber-java-client"
version = '0.0.2-SNAPSHOT'
version = '0.0.2'

repositories {
mavenCentral()
Expand Down

0 comments on commit 735b7d7

Please sign in to comment.