libyadisk/tests/app.c
Maxim Slipenko 9695fe405d refactor
- migrate to libcurl
- separate functions into files
2023-11-27 19:50:27 +03:00

25 lines
452 B
C

//
// Created by maxim on 27.11.23.
//
#include <yadisk.h>
#include <stdio.h>
int main() {
char token[1024];
printf("Enter OAuth token: ");
fgets(token, sizeof(token), stdin);
yadisk_api_client* client = &(yadisk_api_client){
.token = token
};
yadisk_disk_info yadisk_disk_info;
yadisk_get_disk(client, &yadisk_disk_info);
printf("Total disk size: %lu", yadisk_disk_info.total_space);
return 0;
}