Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesga committed Nov 11, 2014
1 parent 5519c0f commit dd0292a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,9 @@

* Include all SDK files and dependencies in your project.

* Create a new class (for example LatchSDK.java) extending Latch.java. This class should override HTTP_GET method with your own implementation to perform HTTP requests as you usually perform them in your project.
```
public class LatchSDK extends Latch{
@Override
public JsonElement HTTP_GET(String URL, Map<String, String>headers) {
//Your implementation here
}
}
```

* Create a Latch object with the "Application ID" and "Secret" previously obtained.
```
LatchSDK latch = new LatchSDK(APP_ID, SECRET);
Latch latch = new Latch(APP_ID, SECRET);
```

* Call to Latch Server. Pairing will return an account id that you should store for future api calls
Expand Down

0 comments on commit dd0292a

Please sign in to comment.