mirror of
https://github.com/LukeHagar/log10ts.git
synced 2025-12-06 04:20:12 +00:00
Adding first generated sdk
This commit is contained in:
20
USAGE.md
Normal file
20
USAGE.md
Normal file
@@ -0,0 +1,20 @@
|
||||
<!-- Start SDK Example Usage [usage] -->
|
||||
```typescript
|
||||
import { Log10 } from "log10ts";
|
||||
|
||||
const log10 = new Log10({
|
||||
log10Token: "<YOUR_API_KEY_HERE>",
|
||||
xLog10Organization: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await log10.sessions.create("<value>");
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
```
|
||||
<!-- End SDK Example Usage [usage] -->
|
||||
Reference in New Issue
Block a user