Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
	String user_id; //id of user to add to community_id
	String community_id; //id of community to add user_id to
}

 

Example
Code Block
curl -b cookies.txt -X POST -d '{"user_id":"5357cc8be4b0a329baa475bf","community_id":"53397e29e4b03196ad0606f7"}' "http://localhost:8185/manager/community" > response.txt
curl -b cookies.txt -X DELETE -d '{"user_id":"5357cc8be4b0a329baa475bf","community_id":"53397e29e4b03196ad0606f7"}' "http://localhost:8185/manager/community" > response.txt

...

Info
curl -b cookies.txt -X POST -d '{"user_id":"5357cc8be4b0a329baa475bf","community_id":"53397e29e4b03196ad0606f7"}' "http://localhost:8185/manager/community" > response.txt

 

Code Block
 {
    "response": {
        "action": "Manager/Community",
        "success": true,
        "message": "Added user to community successfully",
        "time": 0
    }
}