<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Swifty Dropbox Batchupload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213505#M10854</link>
    <description>&lt;P&gt;Thanks Greg, that worked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I hardly see any examples of batch upload, ill post my version here, i hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/bazimogmbh/bba9ab300750a236d903709eeebf82b5" target="_self"&gt;https://gist.github.com/bazimogmbh/bba9ab300750a236d903709eeebf82b5&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 19:53:35 GMT</pubDate>
    <dc:creator>abhishek9851</dc:creator>
    <dc:date>2017-03-27T19:53:35Z</dc:date>
    <item>
      <title>Swifty Dropbox Batchupload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213464#M10849</link>
      <description>&lt;P&gt;I am trying to write batchupload function in swifty, and it works. But I cant get access to async_job_id after I call&amp;nbsp;uploadSessionFinishBatch.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;client.files.uploadSessionFinishBatch(entries: finishArgArray).response{ response, error in
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if let result = response {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(result.description.)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/PRE&gt;
&lt;P class="p1"&gt;I can only access description and the output is something like this&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
&amp;nbsp; &amp;nbsp; ".tag" = "async_job_id";
&amp;nbsp; &amp;nbsp; "async_job_id" = "dbjid:AAAY5UFZ3gPJJn5Com802JjQl48zzD4YYMIXgdhD1ZL0ZnkPApGP4P9pr-_HLAHsIfSu2Jeov9sCpoL_kGuxshpt";
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;I would like to fetch the&amp;nbsp;&lt;STRONG&gt;async_job_id&amp;nbsp;&lt;/STRONG&gt;field, so that I can check the status of batch upload. What is the right way of doing it in swift?&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;In Java I could do something like this&lt;/P&gt;
&lt;PRE&gt;String asyncJobId =  dbxClient.files().uploadSessionFinishBatch(&lt;SPAN&gt;mFinishArgs&lt;/SPAN&gt;).getAsyncJobIdValue()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213464#M10849</guid>
      <dc:creator>abhishek9851</dc:creator>
      <dc:date>2019-05-29T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Swifty Dropbox Batchupload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213492#M10851</link>
      <description>&lt;P&gt;You can access the results job ID like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;switch result {
case .none:
    print("Empty result")
case .some(let unwrappedResult):
    switch unwrappedResult {
    case .asyncJobId(let asyncJobId):
        print(asyncJobId)
    case .complete:
        print("Job is complete")
    }
}&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 18:08:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213492#M10851</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-27T18:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Swifty Dropbox Batchupload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213505#M10854</link>
      <description>&lt;P&gt;Thanks Greg, that worked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I hardly see any examples of batch upload, ill post my version here, i hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/bazimogmbh/bba9ab300750a236d903709eeebf82b5" target="_self"&gt;https://gist.github.com/bazimogmbh/bba9ab300750a236d903709eeebf82b5&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 19:53:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-Dropbox-Batchupload/m-p/213505#M10854</guid>
      <dc:creator>abhishek9851</dc:creator>
      <dc:date>2017-03-27T19:53:35Z</dc:date>
    </item>
  </channel>
</rss>

