Skip to content

Application

Application resource for LoRaWAN application management.

SyncApplications

SyncApplications(client: SyncClient)

Bases: BaseResource['SyncClient']

Applications resource for OAuth application management.

Methods:

  • create

    Create a new application.

  • delete

    Delete an application.

  • get

    Retrieve an application by its ID.

  • get_all

    List all applications.

  • patch

    Partially update an application.

  • refresh_token

    Refresh the application's token.

  • update

    Update an application (full replacement).

create

Create a new application.

Parameters:

Returns:

delete

delete(application_id: str) -> None

Delete an application.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application to delete.

Returns:

  • None

    None

get

Retrieve an application by its ID.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

Returns:

  • ApplicationInstance ( ApplicationInstance ) –

    The application instance matching the given ID.

get_all

get_all() -> list[ApplicationInstance]

List all applications.

Returns:

patch

Partially update an application.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

  • data

    (ApplicationPatch) –

    The partial application data to update.

Returns:

  • bool ( bool ) –

    True if the patch was successful, False otherwise.

refresh_token

refresh_token(application_id: str) -> str

Refresh the application's token.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

Returns:

  • str ( str ) –

    The new client secret.

update

Update an application (full replacement).

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

  • data

    (ApplicationUpdate) –

    The complete application data for replacement.

Returns:

  • bool ( bool ) –

    True if the update was successful, False otherwise.

AsyncApplications

AsyncApplications(client: AsyncClient)

Bases: BaseResource['AsyncClient']

Async applications resource for OAuth application management.

Methods:

  • create

    Create a new application.

  • delete

    Delete an application.

  • get

    Retrieve an application by its ID.

  • get_all

    List all applications.

  • patch

    Partially update an application.

  • refresh_token

    Refresh the application's token.

  • update

    Update an application (full replacement).

create async

Create a new application.

Parameters:

Returns:

delete async

delete(application_id: str) -> None

Delete an application.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application to delete.

Returns:

  • None

    None

get async

Retrieve an application by its ID.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

Returns:

  • ApplicationInstance ( ApplicationInstance ) –

    The application instance matching the given ID.

get_all async

get_all() -> list[ApplicationInstance]

List all applications.

Returns:

patch async

Partially update an application.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

  • data

    (ApplicationPatch) –

    The partial application data to update.

Returns:

  • bool ( bool ) –

    True if the patch was successful.

refresh_token async

refresh_token(application_id: str) -> str

Refresh the application's token.

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

Returns:

  • RefreshApplicationResponse ( str ) –

    The new token and related information.

update async

Update an application (full replacement).

Parameters:

  • application_id

    (str) –

    The unique identifier of the application.

  • data

    (ApplicationUpdate) –

    The complete application data for replacement.

Returns:

  • bool ( bool ) –

    True if the update was successful.

Request and response types: Application models.