diff --git a/packages/nextcloud/example/example.dart b/packages/nextcloud/example/example.dart new file mode 100644 index 00000000..84a6076c --- /dev/null +++ b/packages/nextcloud/example/example.dart @@ -0,0 +1,13 @@ +import 'package:nextcloud/nextcloud.dart'; +import 'package:nextcloud/provisioning_api.dart'; + +Future main() async { + final client = NextcloudClient( + Uri.parse('http://localhost'), + loginName: 'admin', + password: 'admin', + ); + + final response = await client.provisioningApi.users.getCurrentUser(); + print(response.body.ocs.data.id); // Will print `admin` +}