# Code Examples

{% hint style="warning" %}
**Limited Support/End of Life Capabilities**

The Classic API has been replaced by the Alemba RestFul API.  While we will continue to support the Classic API for clients that are still using it, no further development will be done.

If you need to request a hotfix or support for these features, please contact [<mark style="color:blue;">**Alemba Support**</mark>](https://alemba.help/production/Portal.aspx)
{% endhint %}

{% hint style="info" %}
All examples have been written in VB.NET.
{% endhint %}

The sample code below is available as part of a demonstration package to use the Classic API. Contact Alemba® on how to receive this sample code.

### Retrieving Call User Details

This code example uses the LogIn Transaction to log on to ASM, run the CallRetrieve Transaction to retrieve the User on a call and the PersonRetrieve Transaction to retrieve details relating to this User.

This example has been divided into separate stages of code.

#### Define Initial Properties

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/AmGc6zPMBcHOWlVCSmaE/Screen%20Shot%202022-12-05%20at%201.26.35%20PM.png" alt=""><figcaption></figcaption></figure>

#### Log into ASM

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/LIwjFzY4j2fKsMmKG6d1/Screen%20Shot%202022-12-05%20at%201.27.01%20PM.png" alt=""><figcaption></figcaption></figure>

#### Retrieve Call Details

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/tAMYY2tLrnZ95Nn6Dov1/Screen%20Shot%202022-12-05%20at%201.27.57%20PM.png" alt=""><figcaption></figcaption></figure>

#### Retrieve User Details

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/RAfgQZyKolkWHIjIfuDV/Screen%20Shot%202022-12-05%20at%201.28.31%20PM.png" alt=""><figcaption></figcaption></figure>

#### Support Functions

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/WgGzK7Z3bclv69pTBlXn/Screen%20Shot%202022-12-05%20at%201.28.55%20PM.png" alt=""><figcaption></figcaption></figure>
