I am trying to write batchupload function in swifty, and it works. But I cant get access to async_job_id after I call uploadSessionFinishBatch.
client.files.uploadSessionFinishBatch(entries: finishArgArray).response{ response, error in
if let result = response {
print(result.description.)
}
}
I can only access description and the output is something like this
{
".tag" = "async_job_id";
"async_job_id" = "dbjid:AAAY5UFZ3gPJJn5Com802JjQl48zzD4YYMIXgdhD1ZL0ZnkPApGP4P9pr-_HLAHsIfSu2Jeov9sCpoL_kGuxshpt";
}
I would like to fetch the async_job_id field, so that I can check the status of batch upload. What is the right way of doing it in swift?
In Java I could do something like this
String asyncJobId = dbxClient.files().uploadSessionFinishBatch(mFinishArgs).getAsyncJobIdValue();