Last active
September 26, 2017 19:15
-
-
Save allenmichael/7f78b6bd96d083e48402f7900eb21d13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
USER_ADMIN_ID="275111793" && \ | |
USER_LOGIN="[email protected]" && \ | |
USER_NAME="Box Demo Account" && \ | |
USER_FOLDER_NAME="$USER_LOGIN Welcome Folder" && \ | |
USER_ID=$(box users create "$USER_NAME" $USER_LOGIN --id-only) && \ | |
FOLDER_ID=$(box folders create 0 "$USER_FOLDER_NAME" --id-only) && \ | |
FILE_ID=$(box files upload ~/Documents/Welcome.pptx -p $FOLDER_ID --id-only) && \ | |
box folders collaborations add $FOLDER_ID --co-owner --login $USER_LOGIN && \ | |
box folders collaborations add $FOLDER_ID --co-owner --user-id $USER_ADMIN_ID && \ | |
box comments create $FILE_ID file --message "Welcome to your Box account! Just @ mention me if you have any questions." --as-user $USER_ADMIN_ID && \ | |
TASK_ID=$(box tasks create $FILE_ID --due-at 08h --as-user $USER_ADMIN_ID --message "I've assigned you a task to review your weclome materials! Please finish by the end of the day." --id-only) && \ | |
box task-assignments create $TASK_ID --assign-to-user-login $USER_LOGIN --as-user $USER_ADMIN_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment