Created
September 27, 2016 19:11
-
-
Save discoposse/99d83309b03d9ed15f333c9db5e4be01 to your computer and use it in GitHub Desktop.
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
#!/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