I have som problems getting HC to work from groovy. No problems fro Powershell or curl:
curl -s https://api.hipchat.com/v2/room?auth_token=xxxxxxxx&auth_test=true
"message": "Invalid OAuth session",
Groovy - I have tried a lot of variants, like:
//Fire HipChat message
def url = new java.net.URL(baseURL);
URLConnection connection = url.openConnection();
connection.doOutput = true
OutputStreamWriter out = new OutputStreamWriter(
In general, all I get is either 400 or 401 . ...
Anyone with a functioning script?
I haven't personally used Groovy but it sounds like there may be an issue with the tokens that you're using, given the authentication errors you're getting. Note that there are two APIs available, v1 and v2 (the former being deprecated for a while now).
On your cURL example you're calling APIv1, and on the second example you're calling APIv2, so you'll want to make sure the tokens match each request. APIv1 tokens can be generated at https://hipchat.com/admin/api , while for v2, you can create a personal access token at https://hipchat.com/account/api
More info can be found at https://developer.atlassian.com/hipchat/guide/hipchat-rest-api/api-access-tokens
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG