daily pastebin goal
89%
SHARE
TWEET

Untitled

a guest May 27th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require "rubygems"
  2. require "google_apps_api"
  3. include GoogleAppsApi
  4.  
  5. credentials = { :domain => "ocelot.cul.columbia.edu", :admin_user => "_sc_api", :admin_password => "scrubbed" }
  6.  
  7. p_api = Provisioning::Api.new(credentials)
  8. puts p_api.retrieve_user("jws2135")
  9. puts p_api.retrieve_user("jws2135", :return_format => :xml)
  10. puts p_api.retrieve_user("jws2135", :debug => true)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top