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
 7
 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
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) -> Response[ApplicationDetails]:
        """
        Get the application information.

        Returns:
            Response: The application information.
        """

        json_response = self._http_client._execute(
            method="GET", path="/v3/applications"
        )
        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()

Get the application information.

Returns:

Name Type Description
Response Response[ApplicationDetails]

The application information.

Source code in nylas/resources/applications.py
25
26
27
28
29
30
31
32
33
34
35
36
def info(self) -> Response[ApplicationDetails]:
    """
    Get the application information.

    Returns:
        Response: The application information.
    """

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