Skip to content

Instantly share code, notes, and snippets.

@drewyeaton
Last active February 15, 2018 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewyeaton/4e7a5d5a8725b9e7360743aacbc401cf to your computer and use it in GitHub Desktop.
Save drewyeaton/4e7a5d5a8725b9e7360743aacbc401cf to your computer and use it in GitHub Desktop.

Rodio Punch-in/out

The purpose of the punch in/punch out API is to allow an external service to update Rodio users with their on-duty status.

To comply with state and local employment law, we've built functionality to disable outbound functionality for employees that are not actively on the clock.

  • When a user is on-duty, they will get full functionality of the app along with push notifications and active status treatemnt within the UI.

  • When a user is off-duty, the app remains functional, but outbound communication is heavily curtailed.

Create Punch Event

curl -X "POST" "https://rodioapp.com/api/punches" \
     -H "Api-Key: Token 2201b...e890a" \
     -H "Content-Type: application/json; charset=utf-8" \
     -d $'{
  "company_id": "321",
  "employee_num": "123",
  "first_name": "Barbara",
  "last_name": "Holland",
  "email": "barb@upsidedown.com",
  "phone": "+13211234321"
  "hired_date": "2018-09-10T11:12:13.456Z",
  "end_date": null,
  "birth_date": "1984-09-10T11:12:13.456Z",
  "is_on_duty": "1"
}'

Authentication

Rodio will provide you with a token for use with our dev environment and production environment. The token is a 64 character alpha-numeric string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment