mirror of
https://github.com/LukeHagar/Dokploy-ts-sdk.git
synced 2025-12-06 12:27:48 +00:00
27 lines
533 B
TypeScript
27 lines
533 B
TypeScript
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
import dotenv from "dotenv";
|
|
dotenv.config();
|
|
/**
|
|
* Example usage of the dokploy SDK
|
|
*
|
|
* To run this example from the examples directory:
|
|
* npm run build && npx tsx adminGetOne.example.ts
|
|
*/
|
|
|
|
import { Dokploy } from "dokploy";
|
|
|
|
const dokploy = new Dokploy({
|
|
authorization: process.env["DOKPLOY_AUTHORIZATION"] ?? "",
|
|
});
|
|
|
|
async function main() {
|
|
const result = await dokploy.admin.getOne();
|
|
|
|
console.log(result);
|
|
}
|
|
|
|
main().catch(console.error);
|