Guest User

Untitled

a guest
May 27th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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)
Add Comment
Please, Sign In to add comment