The API functions which require change on server by user are called through HTTP POST.
login api expects username, password ,log, captcha verification and redirecturl which you will get from redirectUrl API responce.