Skip to content

Instantly share code, notes, and snippets.

View kerlin's full-sized avatar

Chris Kerlin kerlin

  • Florida Atlantic University
  • Boca Raton, Florida USA
View GitHub Profile
@kerlin
kerlin / get_workers.rb
Last active November 17, 2021 02:03
Calling the Workday API in Ruby with Savon
#!/usr/bin/env ruby
#
# Example Ruby CLI script to retrieve worker data from Workday
# Call on command line with worker id; prints worker name
# add "request" or "response" after worker id and prints the
# outgoing xml or received hash and exits.
#
# Using Savon version 2 for the SOAP client (2.11.2)
#
# Savon defaults to making the message tag the same as the operation name