Skip to content

Instantly share code, notes, and snippets.

@Dispader
Created May 9, 2016 23:51
Show Gist options
  • Save Dispader/a7037884e64f398e7084908f715a35eb to your computer and use it in GitHub Desktop.
Save Dispader/a7037884e64f398e7084908f715a35eb to your computer and use it in GitHub Desktop.
groovysh Slack API test for Extemporaneous Groovy
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>
@Dispader
Copy link
Author

Dispader commented May 9, 2016

Oh, look— it returns args. Grarg. Re-generating the token now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment