add more fields for yadisk_get_disk_resources

This commit is contained in:
2023-12-31 22:18:50 +03:00
parent db89e0e129
commit 7efbd654b7
4 changed files with 46 additions and 6 deletions

View File

@@ -30,9 +30,10 @@ int main()
yadisk_init();
yadisk_api_client* client = &(yadisk_api_client) {
.token = token
};
yadisk_api_client* client = malloc(sizeof(yadisk_api_client));
if (client != NULL) {
client->token = token;
}
yadisk_disk_info info;
yadisk_get_disk(client, &info);
@@ -81,6 +82,9 @@ int main()
printf("Created: %s\n", resource.created);
printf("Modified: %s\n", resource.modified);
printf("ResourceID: %s\n", resource.resource_id);
printf("Media TYPE: %s\n", resource.media_type);
printf("Mime TYPE: %s\n", resource.mime_type);
printf("Size: %lu\n", resource.size);
yadisk_cleanup();