more formatting
This commit is contained in:
parent
d76ace8670
commit
cdc198e186
1 changed files with 10 additions and 2 deletions
12
src/main.zig
12
src/main.zig
|
|
@ -270,13 +270,21 @@ pub fn main() !void {
|
|||
|
||||
try stdout.print("🔐 Authenticating...\n", .{});
|
||||
try stdout.flush();
|
||||
const auth = try authenticate(allocator, creds.username, creds.password);
|
||||
const auth = try authenticate(
|
||||
allocator,
|
||||
creds.username,
|
||||
creds.password,
|
||||
);
|
||||
defer allocator.free(auth.id_token);
|
||||
defer allocator.free(auth.user_uuid);
|
||||
try stdout.print("✓ User UUID: {s}\n\n", .{auth.user_uuid});
|
||||
try stdout.print("📱 Fetching devices...\n", .{});
|
||||
try stdout.flush();
|
||||
const result = try getDevices(allocator, auth.id_token, creds.username);
|
||||
const result = try getDevices(
|
||||
allocator,
|
||||
auth.id_token,
|
||||
creds.username,
|
||||
);
|
||||
defer result.deinit();
|
||||
|
||||
if (result.value.object.get("data")) |data| {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue