Skip to content

Commit

Permalink
fixed things, cleaned up id.py example script
Browse files Browse the repository at this point in the history
  • Loading branch information
sleexyz committed Feb 5, 2014
1 parent 60ae50c commit a003da1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.swp
*.tar.gz
*.pyc
*__pycache__
7 changes: 0 additions & 7 deletions EXPLORING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@ Upon login on connect.exeter.edu, your browser makes multiple SOAP calls to Conn
###Places to poke/use
- <https://connect.exeter.edu/_vti_bin/userprofileservice.asmx>
- <https://connect.exeter.edu/_vti_bin/usergroup.asmx>
- <https://connect.exeter.edu/_vti_bin/Authentication.asmx>
- <https://connect.exeter.edu/_vti_bin/search.asmx>

#Calendar

#Lionlinks

#csserver.exeter.edu/schedule
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import PEA_connect

users = PEA_connect.users() #downloads data, or loads from a cache

user = users.get(raw_input("Your username please: ")) #asks for your username
print("Hello " + user.get("FirstName") + " " + user.get("LastName") + "!") #prints your name
print("You live in " + user.get("PEALivingGroup") + ".") #prints your dorm
print("Your PO Box number is " + user.get("POBox") + ".") #prints your PO number
me = users.get(raw_input("Your username please: ")) #asks for your username
print("Hello " + me.get("FirstName") + " " + me.get("LastName") + "!") #prints your name
print("You live in " + me.get("PEALivingGroup") + ".") #prints your dorm
print("Your PO Box number is " + me.get("POBox") + ".") #prints your PO number
```

[More examples](examples/)
Expand Down Expand Up @@ -69,6 +69,5 @@ _TODO_ write/design installation of actual module
[Here](EXPLORING.md)

##Todo:
- Redocument readme
- Add to README how an actual user/class data looks like in JSON
- fix tests/examples
- Make into pip installable thing
2 changes: 2 additions & 0 deletions examples/id.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from PEA_connect import users
import json

#Repeatedly queries for ID numbers, and returns the appropriate info for that ID number

def pprint(x):
print(json.dumps(x, indent=4, sort_keys=True))

Expand Down

0 comments on commit a003da1

Please sign in to comment.