Skip to content

Instantly share code, notes, and snippets.

@discoposse
Created September 27, 2016 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discoposse/99d83309b03d9ed15f333c9db5e4be01 to your computer and use it in GitHub Desktop.
Save discoposse/99d83309b03d9ed15f333c9db5e4be01 to your computer and use it in GitHub Desktop.
#!/bin/bash
# USERID is the starting number for the users to follow
# LASTUSER is your upper bound user ID number
# JIVEUSER is your Jive username
# JIVEPASS is your plaintext password
USERID=38000
LASTUSER=38010
JIVEUSER=
JIVEPASS=
until [ $USERID -eq $LASTUSER ] ; do
echo curl -i -u $JIVEUSER:$JIVEPASS -H \"Content-Type: application/json\" -H \"Accept: application/json\" -X POST --data \'[\"https://greencircle.vmturbo.com/api/core/v3/people/$USERID\"]\' https://greencircle.vmturbo.com/api/core/v3/streams/2416/associations >> curlme.sh
let USERID+=1
done
bash curlme.sh
mv curlme.sh curlme.done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment