Jelajahi Sumber

docs: add resultPromise properties to example snippets

Renée Kooi 6 tahun lalu
induk
melakukan
c49a1401a2
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      website/src/docs/robodog.md

+ 8 - 0
website/src/docs/robodog.md

@@ -56,6 +56,10 @@ const resultPromise = transloadit.pick({
     template_id: ''
   }
 })
+resultPromise.then((bundle) => {
+  bundle.transloadit // Array of Assembly statuses
+  bundle.results // Array of all Assembly results
+})
 ```
 
 **ADD IMAGE OR GIF HERE**
@@ -96,6 +100,10 @@ const resultPromise = transloadit.upload(files, {
     template_id: ''
   }
 })
+resultPromise.then((bundle) => {
+  bundle.transloadit // Array of Assembly statuses
+  bundle.results // Array of all Assembly results
+})
 ```
 
 <a class="MoreButton" href="/docs/robodog/upload">View Documentation</a>