Skip to content

applications

Applications

Bases: Resource

Nylas Applications API

The Nylas Applications API allows you to get information about your Nylas application. You can also manage the redirect URIs associated with your application.

Source code in nylas/resources/applications.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class Applications(Resource):
    """
    Nylas Applications API

    The Nylas Applications API allows you to get information about your Nylas application.
    You can also manage the redirect URIs associated with your application.
    """

    @property
    def redirect_uris(self) -> RedirectUris:
        """
        Manage Redirect URIs for your Nylas Application.

        Returns:
            RedirectUris: The redirect URIs associated with your Nylas Application.
        """
        return RedirectUris(self._http_client)

    def info(self, overrides: RequestOverrides = None) -> Response[ApplicationDetails]:
        """
        Get the application information.

        Args:
            overrides: The query parameters to include in the request.

        Returns:
            Response: The application information.
        """

        json_response = self._http_client._execute(
            method="GET", path="/v3/applications", overrides=overrides
        )
        return Response.from_dict(json_response, ApplicationDetails)

redirect_uris: RedirectUris property

Manage Redirect URIs for your Nylas Application.

Returns:

Name Type Description
RedirectUris RedirectUris

The redirect URIs associated with your Nylas Application.

info(overrides=None)

Get the application information.

Parameters:

Name Type Description Default
overrides RequestOverrides

The query parameters to include in the request.

None

Returns:

Name Type Description
Response Response[ApplicationDetails]

The application information.

Source code in nylas/resources/applications.py
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
def info(self, overrides: RequestOverrides = None) -> Response[ApplicationDetails]:
    """
    Get the application information.

    Args:
        overrides: The query parameters to include in the request.

    Returns:
        Response: The application information.
    """

    json_response = self._http_client._execute(
        method="GET", path="/v3/applications", overrides=overrides
    )
    return Response.from_dict(json_response, ApplicationDetails)