How can I confirm : workspace shared properly using curl command

workspace

#1

Hi Team,

As an administrator, I just shared one workspace to my user. But how can I ensure it shared properly to that user using curl command. I tried below one but it failed :

curl -XGET ‘https://c9.io/customerusername?type=shared’ -H ‘Origin: https://c9.io
-H ‘Content-Type: application/json’ -H ‘x-requested-with: xmlhttprequest’ --max-time 90
–data-binary ‘{“username”:“customerusername”,“password”:“customerpassword”}’ --compressed

It gives 404.

Any simpler way to know success of sharing workspace through curl command ??

Thanks,
Siva.


#2

use the token as shown in How to access init.js file

curl https://api.c9.io/user/projects/shared?access_token=$token