Created
May 9, 2016 23:51
-
-
Save Dispader/a7037884e64f398e7084908f715a35eb to your computer and use it in GitHub Desktop.
groovysh Slack API test for Extemporaneous Groovy
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
groovy:000> base = 'https://slack.com/api/' | |
===> https://slack.com/api/ | |
groovy:000> "${base}api.test?token=${token}".toURL().text | |
===> {"ok":true,"args":{"token":"xoxp-29736524550-29773811473-41484563842-0e0ceb60c8"}} | |
groovy:000> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, look— it returns args. Grarg. Re-generating the token now.