Created
February 10, 2015 20:58
-
-
Save adamlwalker/32ecc95e801d2b5ee47a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Print list of FreezerPro user records in JSON | |
| require 'rest_client' | |
| params = { | |
| username: 'adam', | |
| password: 'XXXX', | |
| method: 'users' | |
| } | |
| response = RestClient.post "http://192.168.2.87/api", params | |
| puts response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment