cURL - Login, Get Public Communities, Request to Join Community, Logout

cURL - Login, Get Public Communities, Request to Join Community, Logout
curl -c cookies.txt 'http://infinite.ikanow.com/api/auth/login/sterling_archer@ikanow.com/WZRHGrsBESr8wYFZ9sx0tPURuZgG2lmzyvWpwXPKz8U%3D' > response.txt
curl -b cookies.txt 'http://infinite.ikanow.com/api/social/community/getpublic' > response.txt
	//From the response of getpublic communities we can copy one of the ids to what community we wish to join
curl -b cookies.txt 'http://infinite.ikanow.com/api/social/community/member/join/4c927585d591d31d7c37097b' > response.txt
	//response will say if you have been successfully added, or awaiting owner permission
curl -b cookies.txt 'http://infinite.ikanow.com/api/auth/logout' > response.txt

*note: All of these curl calls are pushing their output to a local file named response.txt, you can remove this if you want to just print out the result in console