diff options
Diffstat (limited to 'nextcloud_users')
-rw-r--r-- | nextcloud_users | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nextcloud_users b/nextcloud_users index fce9c73..e311a12 100644 --- a/nextcloud_users +++ b/nextcloud_users @@ -2,9 +2,10 @@ # -*- coding: utf-8 -*- import requests import sys +import os -URL = 'https://URL.TO.YOUR.NEXTCLOUD.tld/ocs/v2.php/apps/serverinfo/api/v1/info' -auth = ('username', 'password or logintoken') +URL = os.environ['url'] +auth = (os.environ['username'], os.environ['password']) class NextcloudUsers: |