aboutsummaryrefslogtreecommitdiffstats
path: root/nextcloud_shares
diff options
context:
space:
mode:
Diffstat (limited to 'nextcloud_shares')
-rw-r--r--nextcloud_shares5
1 files changed, 3 insertions, 2 deletions
diff --git a/nextcloud_shares b/nextcloud_shares
index b2e858e..cf75234 100644
--- a/nextcloud_shares
+++ b/nextcloud_shares
@@ -3,9 +3,10 @@
import re
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 NextcloudShares: