Skip to content

Commit

Permalink
Remove one unwanted credential
Browse files Browse the repository at this point in the history
  • Loading branch information
kmchmk committed Jul 30, 2021
1 parent cdc5aa6 commit 14e7aed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
__pycache__/
*.ini
*.ini
*.exe
build/*
dist/*
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ Initial setup:
```
pip install pystray
pip install requests
```

Create executable:
```
pyinstaller --hidden-import 'pystray._win32' --noconsole --onefile 'system_tray.py'
```
1 change: 0 additions & 1 deletion credentials.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[DEFAULT]
username = <SLT number>
password = <Password>
subscriberid = <I got this using Inspect Element option in browser>
x_ibm_client_id = <I got this using Inspect Element option in browser>
4 changes: 2 additions & 2 deletions data_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

username = config['DEFAULT']['username']
password = urllib.parse.quote(config['DEFAULT']['password'])
subscriberid = config['DEFAULT']['subscriberid']
x_ibm_client_id = config['DEFAULT']['x_ibm_client_id']


Expand All @@ -19,7 +18,8 @@ def get_data_usage():
response = requests.request("POST", url, data=payload, headers=headers)
response = json.loads(response.text)
access_token = response["access_token"]

subscriberid = response["metadata"]

# Get the data usage
url = "https://omniscapp.slt.lk/mobitelint/slt/sltvasservices/dashboard/summary"
headers = {
Expand Down

0 comments on commit 14e7aed

Please sign in to comment.