Session Structures

class nc_py_api._session.ServerVersion[source]

Nextcloud version information.

major: int

Major version

minor: int

Minor version

micro: int

Micro version

string: str

Full version in string format

extended_support: bool

Indicates if the subscription has extended support

class nc_py_api._theming.ThemingInfo[source]

Nextcloud Theme information.

name: str

Name of the Nextcloud instance

url: str

Url that set in Theme app

slogan: str

Slogan, e.g. ‘a safe home for all your data’

Url of the instance’s logo

background: str

Either an URL of the background image or a hex color value

class nc_py_api._session.AppConfig(**kwargs)[source]

Application configuration.

aa_version: str

AppAPI version

app_name: str

Application ID

app_version: str

Application version

app_secret: str

Application authentication secret

Internal

Note

The Session API is currently private and subject to change without deprecation.

class nc_py_api._session.NcSessionBasic(**kwargs)[source]
property user: str

Current user ID. Can be different from the login name.

class nc_py_api._session.NcSessionApp(**kwargs)[source]
property ae_url: str

Return base url for the AppAPI endpoints.

property ae_url_v2: str

Return base url for the AppAPI endpoints(version 2).

property user: str

Current user ID. Can be different from the login name.

class nc_py_api._session.NcSession(**kwargs)[source]