aboutsummaryrefslogtreecommitdiffstats
path: root/nextcloud_shares
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-09-04 15:10:28 +0200
committernico <nico@magicbroccoli.de>2018-09-04 15:10:28 +0200
commitf7a99afdca61f17ae30c8a73194498c7f6281ec7 (patch)
tree6ca61236ce0da4042d3a564a699295d75c8a11c5 /nextcloud_shares
parentc9e2bc743397229a930c2647d5b59034f9be08c0 (diff)
removed hardcoded variables
+ added env variable support to remove hardcoded elements from plugin code * updated readme to represent thse changes
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: