简体   繁体   中英

How to get file extension and path from V2 Box iOS SDK?

I'm trying to retrieve the metadata from my box account via the IOS API V2 from BOX.

Digging into the API It looks like there is no field for the "file extension" and the "full path":

- (id)initWithQueryStringParameters:(NSDictionary *)queryStringParameters
{
    self = [super initWithQueryStringParameters:queryStringParameters];
    if (self != nil)
    {
        _name = nil;
        _description = nil;
        _contentCreatedAt = nil;
        _contentModifiedAt = nil;
        _parentID = nil;
        _sharedLink = nil;
    }

return self;

}

Please correct me if I'm wrong (and maybe show me where in the API these metadata are listed, thanks !)

If I'm not wrong...probably initWithQueryStringParameters should have in the future two extra fields (_fileExtension and _path) and this could be considered a RFE.

I would not consider this lack of additional metadata too much of a big deal (will make a 2 liners to extract the extension and some hack to put together the path components) but would be nice to have them.. .

Thanks, dom

原始Box API中的完整路径称为path_collection,它是一个可选字段,您可以通过API调用上的?fields =参数来请求。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM