mirror of
https://github.com/LukeHagar/Dokploy-ts-sdk.git
synced 2025-12-09 12:27:48 +00:00
initial commit
This commit is contained in:
26
examples/adminGetOne.example.ts
Normal file
26
examples/adminGetOne.example.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* 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);
|
||||
Reference in New Issue
Block a user