Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Connect to the API
- String domain = "saxon.socrata.com";
- String username = "<youremail>";
- String password = "<yourpass>";
- String appToken = "<yourapptoken>";
- Connection connection = new HttpConnection(domain, username, password, appToken);
- // Connect to the view
- View view = View.find("ry7h-n6bk", connection);
- // Retrieve the first 10 rows
- List<View.Row> rows = view.getRows(0, 10, connection);
- // Print them out
- for(View.Row r : rows) {
- System.out.println("Row: " + r.getDataFieldsForSerialization());
- }
Add Comment
Please, Sign In to add comment