- loginEmailLoginPost - Login Email
- loginApiKeyLoginApiKeyPost - Login Api Key
Login Email
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await galileoGenerated.auth.loginEmailLoginPost({
username: "Araceli_Herzog",
password: "vochafN1SS9zPdo",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { authLoginEmailLoginPost } from "galileo-generated/funcs/authLoginEmailLoginPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
async function run() {
const res = await authLoginEmailLoginPost(galileoGenerated, {
username: "Araceli_Herzog",
password: "vochafN1SS9zPdo",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("authLoginEmailLoginPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.BodyLoginEmailLoginPost | ✔️ | The request object to use for the request. |
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. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.Token>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Login Api Key
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await galileoGenerated.auth.loginApiKeyLoginApiKeyPost({
apiKey: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { authLoginApiKeyLoginApiKeyPost } from "galileo-generated/funcs/authLoginApiKeyLoginApiKeyPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
async function run() {
const res = await authLoginApiKeyLoginApiKeyPost(galileoGenerated, {
apiKey: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("authLoginApiKeyLoginApiKeyPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ApiKeyLoginRequest | ✔️ | The request object to use for the request. |
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. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.Token>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |