AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 5. Configuration User, File & Clipboard >

AIG. - AI Google Gemini Integration

AIG.GetUser

Previous Top Next


MiniRobotLanguage (MRL)

 

AIG.GetUser
Retrieve the Current User Identifier

 

Intention

 

Retrieve the optional user identifier string currently configured to be sent with API requests.

 

What is the GetUser Command?

 

This Command returns the current value stored in the AIG_User global variable. This value is set using the AIG.SetUser Command.

 

Why Do You Need It?

 

Use this Command to:

Verify Configuration: Check which user ID, if any, is currently being sent with requests.

Debugging: Confirm the user ID setting.

 

How to Use

 

Call the Command, optionally providing a variable name (P1) to store the resulting user ID string.

 

Example Usage

 

// Set a user ID

AIG.SetUser|AppUser_567

 

// Retrieve the current user ID

AIG.GetUser|$$CurrentUserID

DBP. Current User ID: @$$CurrentUserID

// Output: Current User ID: AppUser_567

 

Syntax

 

AIG.GetUser[|P1]

AIG.gus[|P1]

 

Parameter Explanation

 

P1 - (Optional) The name of the variable (e.g., `$$MyVar`) where the retrieved user identifier string should be stored.

 

Remarks

 

- Returns the exact string stored in the AIG_User global variable.

- An empty string indicates that no user identifier is currently set.

 

See also:

 

? AIG.SetUser

? AIG. Commands Overview