Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
ShiftPlanning Python SDK
This Repository Have Shiftplanning Python 3 SDK
===============================================


ShiftPlanning Python 3 SDK
================

The [ShiftPlanning API](http://www.humanity.com/api/) allows you to call modules within the ShiftPlanning [employee scheduling software](http://www.humanity.com/) that respond in REST style JSON & XML.
Expand Down
16 changes: 8 additions & 8 deletions examples/shift-planning-usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def say_hello():
print 'hi'
print('hi')

if __name__ == "__main__":
key = "your token goes here"
Expand All @@ -19,31 +19,31 @@ def say_hello():
creating and message
s.create_message({'message':'this is a beautiful day.','subject':'weather','to':'14320'})
s.get_messages()
print s.get_public_data()
print(s.get_public_data())
#creating a wall message
s.create_wall_message({'title':'fun weather','post':'cool weather'})
s.get_wall_messages()
print s.get_public_data()
print(s.get_public_data())
#creating an employee
s.create_employee({'name':'Paul'})
s.get_employees()
print s.get_public_data()
print(s.get_public_data())
s.get_employee_details('14304')
print s.get_public_data()
print(s.get_public_data())
#creating a staff skill
s.create_staff_skill({'name':'technical leadership'})
s.get_staff_skills()
print s.get_public_data()
print(s.get_public_data())
#creating a staff ping
s.create_staff_ping({'to':'14304','message':'this is just a ping'})
s.create_schedule({'name':'Very important architecture overview!'})
s.get_schedules()
print s.get_public_data()
print(s.get_public_data())
#creating a shift
s.create_shift({'start_time':'10:00 am','end_time':'11:00 pm','start_date':'24 December 2010',
'end_date':'25 December 2010','schedule':'99'})
s.get_shifts()
print s.get_public_data()
print(s.get_public_data())
#creating a vacation schedule

s.create_vacation_schedule({'start_date':'29 December 2010','end_date':'10 January 2011'})
Expand Down
Loading