haystack 0.6.0-dev.0.1 haystack: ^0.6.0-dev.0.1 copied to clipboard
Port of haystack java toolkit (https://bitbucket.org/brianfrank/haystack-java). Use it for work with SkySpark. For more details look readme.
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library haystack.example;
import 'package:haystack/core.dart';
import 'package:haystack/hclient.dart';
final String uri = "http://localhost:8080/api/demo";
final String user = "haystack";
final String pass = "testpass";
HClient client;
void main() {
client = new HClient(uri, user, pass);
client.open().then((_) => client.about()).then((HDict result) {
print(result);
});
}