Files
log10ts/docs/sdks/sessions/README.md
2024-05-24 17:16:47 -07:00

4.2 KiB
Raw Permalink Blame History

Sessions

(sessions)

Overview

Sessions

Available Operations

create

Create a session

Example Usage

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();

Parameters

Parameter Type Required Description
xLog10Organization string N/A
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

Response

Promise<operations.CreateSessionResponse>

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /