mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
Generate clients (#206)
This commit is contained in:
13
examples/file/read/node/readFile.js
Executable file
13
examples/file/read/node/readFile.js
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as file from "m3o/file";
|
||||
|
||||
// Read a file by path
|
||||
async function ReadFile() {
|
||||
let fileService = new file.FileService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await fileService.read({
|
||||
path: "/document/text-files/file.txt",
|
||||
project: "examples",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ReadFile();
|
||||
Reference in New Issue
Block a user