Skip to content

Commit 2157e88

Browse files
committed
added workspace name
1 parent b0f6be0 commit 2157e88

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

examples/Workspaces/eg001CreateWorkspace.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ echo ""
6868
workspace_id=`cat $response | grep workspace_id | sed 's/.*\"workspace_id\":\"//' | sed 's/".*//'`
6969
echo "Workspace created! ID: ${workspace_id}"
7070
echo ${workspace_id} > config/WORKSPACE_ID
71+
echo ${workspace_name} > config/WORKSPACE_NAME
7172

7273
rm "$response"
7374
rm "$request_data"

examples/Workspaces/eg002AddDocumentToWorkspace.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fi
99

1010
# Check that a workspace exists
1111
workspace_id=$(cat config/WORKSPACE_ID)
12+
workspace_name=$(cat config/WORKSPACE_NAME)
1213
if [ -z "$workspace_id" ]; then
1314
echo "Please create a workspace before running this example"
1415
exit 0
@@ -115,7 +116,8 @@ echo ""
115116

116117
# Pull out the document ID and save it
117118
document_id=$(cat $response | grep document_id | sed 's/.*"document_id":"//' | sed 's/".*//')
118-
echo "Document added! ID: ${document_id}"
119+
echo ""
120+
echo "Document added to the workspace '${workspace_name}'! ID: ${document_id}"
119121
echo ${document_id} > config/DOCUMENT_ID
120122

121123
rm "$response"

0 commit comments

Comments
 (0)