Skip to content

Commit

Permalink
fixing the codes
Browse files Browse the repository at this point in the history
  • Loading branch information
HqNw committed Sep 29, 2023
1 parent 31c9fbf commit 398db75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ from delta_sdk import delta_auth

## login
```python
auth = delta_auth.login("https://dulms.deltauniv.edu.eg")
auth.auth("USERNAME", "PASSWORD")
auth = delta_auth.Auth("https://dulms.deltauniv.edu.eg")
auth.login("USERNAME", "PASSWORD")
```

## get user data
```python
auth = delta_auth.login("https://dulms.deltauniv.edu.eg")
auth.auth("USERNAME", "PASSWORD")
auth = delta_auth.Auth("https://dulms.deltauniv.edu.eg")
auth.login("USERNAME", "PASSWORD")

data = auth.get_user_data()
print(data)
Expand All @@ -36,7 +36,7 @@ print(data)
## get assginments
```python
auth = delta_auth.Auth('https://dulms.deltauniv.edu.eg')
auth.auth("USERNAME", "PASSWORD")
auth.login("USERNAME", "PASSWORD")

data = auth.get_assignments()
print(data)
Expand All @@ -45,7 +45,7 @@ print(data)
## get quizzes
```python
auth = Auth('https://dulms.deltauniv.edu.eg')
auth.auth("USERNAME", "PASSWORD")
auth.login("USERNAME", "PASSWORD")

data = auth.get_quizzes()
print(data)
Expand All @@ -55,7 +55,7 @@ print(data)

```python
auth = Auth('https://dulms.deltauniv.edu.eg')
auth.auth("USERNAME", "PASSWORD")
auth.login("USERNAME", "PASSWORD")

cookies = auth.get_cookies()
print(coockies['Id'])
Expand Down

0 comments on commit 398db75

Please sign in to comment.