pub async fn get_connections(
    cid: u64,
    page: Option<u64>
) -> Result<PaginatedResponse<ConnectionEntry>, VatsimUtilError>
Expand description

Get a list of all the user’s previous connections.

A page number can optionally be specified.

Example

use vatsim_utils::rest_api::get_connections;

let connections = get_connections(1234567890, None).await.unwrap();
// or ...
let connections = get_connections(1234567890, Some(3)).await.unwrap();

Errors

This function can fail if the HTTP request fails or if the returned data does not match the schemas of the models passed to the deserializer.