Created
April 4, 2013 11:28
-
-
Save bulters/5309644 to your computer and use it in GitHub Desktop.
Sign in at prooflink
This file contains 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
prooflink_url = "https://" + [ProoflinkConnect.config.subdomain, ProoflinkConnect.config.provider_endpoint].join(".") + "/api/accounts/sign_in" | |
prooflink_params = { | |
:api_key => ProoflinkConnect.config.api_key, | |
:user => { | |
:email => username, | |
:password => password | |
} | |
} | |
prooflink_auth = JSON.parse(RestClient.post(prooflink_url, prooflink_params).body) | |
# token zit nu in prooflink_auth["token"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment