SDK
फ़ाइलें
`files.list`, `listAll`, `iterate`, `get`, `download`, `listLinks`, `listAllLinks`, `iterateLinks` और `delete`।
हर method
import { writeFile } from 'node:fs/promises' const page = await openemail.files.list({ kind: 'pdf', sort: 'largest' })const file = page.items[0]! await writeFile(file.filename, await openemail.files.download(file.id)) const links = await openemail.files.listAllLinks(file.id)console.log(links.map((link) => [link.url, link.downloads])) await openemail.files.delete(file.id)मेलबॉक्स में रखा हर अटैचमेंट, भेजा और पाया हुआ, यानी ऐप का फ़ाइलें पेज। download बाइट को Uint8Array के रूप में लौटाता है, और लिंक वे डाउनलोड लिंक हैं जिनके रूप में कोई बड़ा अटैचमेंट भेजा गया, साथ में यह कि हर लिंक कितनी बार लिया गया।
पढ़ने के लिए threads:read और हटाने के लिए threads:write चाहिए, और सिर्फ़ वर्कस्पेस का मालिक हटा सकता है। कुछ ख़ास पतों या डोमेन तक सीमित कुंजी सिर्फ़ उन्हीं पर आई फ़ाइलें देखती है।