{"action":"created","issue":{"url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/17","labels_url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/17/comments","events_url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/17/events","html_url":"https://github.com/sumppen/WhatsApi4J/issues/17","id":62064878,"number":17,"title":"Login failure","user":{"login":"tsvetkoff","id":11502146,"avatar_url":"https://avatars.githubusercontent.com/u/11502146?v=3","gravatar_id":"","url":"https://api.github.com/users/tsvetkoff","html_url":"https://github.com/tsvetkoff","followers_url":"https://api.github.com/users/tsvetkoff/followers","following_url":"https://api.github.com/users/tsvetkoff/following{/other_user}","gists_url":"https://api.github.com/users/tsvetkoff/gists{/gist_id}","starred_url":"https://api.github.com/users/tsvetkoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsvetkoff/subscriptions","organizations_url":"https://api.github.com/users/tsvetkoff/orgs","repos_url":"https://api.github.com/users/tsvetkoff/repos","events_url":"https://api.github.com/users/tsvetkoff/events{/privacy}","received_events_url":"https://api.github.com/users/tsvetkoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-16T12:31:33Z","updated_at":"2015-04-08T12:19:25Z","closed_at":"2015-03-17T10:18:51Z","body":"Hello everyone! I try to use WhatsApi4J but I have some problems.\r\n\r\nDescription says I should run the program using console command\r\njava -cp target/dependency/*:target/whatsapi4j-1.0.0-SNAPSHOT.jar net.sumppen.whatsapi4j.example.ExampleApplication 358401122333 'mypassword' 'mytestapplication' 'My Test Account'\r\n\r\nHaving been done this I got Login exception as mentioned at image below:\r\n![default](https://cloud.githubusercontent.com/assets/11502146/6665830/66400db6-cbf7-11e4-8a8e-af8d62af26b5.PNG)\r\n(my version of project is https://github.com/sumppen/WhatsApi4J/commit/33cf3948e73be195ad8d6c3c450002ef873435ec )\r\n\r\nSo the connection set, but response contains \r\nfailure\r\n    not-authorized /not-authorized\r\n/failure\r\n\r\nI need to know if the phone have been registered in WhatsApp. So I check that code invokes web service. I try to use url https://v.whatsapp.net/v2/exist?cc={mycode}&in={myphone} to obtain a identity where mycode and myphone are mine. So response looks like this:  {\"status\":\"created\",\"id\":\"/zNEZIyuHx1ZnIKSl7txgpwEyUE=\",\"sms_length\":6,\"voice_length\":6} \r\n(id here is 29char-string)\r\nNext, I try to check account linked this id by:\r\nhttps://v.whatsapp.net/v2/exist?cc={mycode}&in={myphone}&id=/zNEZIyuHx1ZnIKSl7txgpwEyUE=\r\nSo I get {\"status\":\"fail\",\"reason\":\"incorrect\",\"sms_length\":6,\"voice_length\":6}.\r\n\r\nPlease, tell me what I do wrong?"},"comment":{"url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/comments/90895900","html_url":"https://github.com/sumppen/WhatsApi4J/issues/17#issuecomment-90895900","issue_url":"https://api.github.com/repos/sumppen/WhatsApi4J/issues/17","id":90895900,"user":{"login":"vcanilkumar","id":11570020,"avatar_url":"https://avatars.githubusercontent.com/u/11570020?v=3","gravatar_id":"","url":"https://api.github.com/users/vcanilkumar","html_url":"https://github.com/vcanilkumar","followers_url":"https://api.github.com/users/vcanilkumar/followers","following_url":"https://api.github.com/users/vcanilkumar/following{/other_user}","gists_url":"https://api.github.com/users/vcanilkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/vcanilkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcanilkumar/subscriptions","organizations_url":"https://api.github.com/users/vcanilkumar/orgs","repos_url":"https://api.github.com/users/vcanilkumar/repos","events_url":"https://api.github.com/users/vcanilkumar/events{/privacy}","received_events_url":"https://api.github.com/users/vcanilkumar/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T12:19:25Z","updated_at":"2015-04-08T12:19:25Z","body":"Hi,\n\nThanks for the response. My issue is with point(2)  where I'm unable to get\nthe confirmation code on my mobile\n\nException :\n\nEvent code_request_failed: phoneNumber=<<MyNum>>\nCaught exception: There was a problem trying to request the code.\nStatus=fail\nnet.sumppen.whatsapi4j.WhatsAppException: There was a problem trying to\nrequest the code. Status=fail\n        at net.sumppen.whatsapi4j.WhatsApi.codeRequest(WhatsApi.java:280)\n        at\nnet.sumppen.whatsapi4j.example.ExampleApplication.sendRequest(ExampleApplication.java:187)\n        at\nnet.sumppen.whatsapi4j.example.ExampleApplication.main(ExampleApplication.java:129)\n\nRegards, Anil\n\n\nOn Wed, Apr 8, 2015 at 3:08 PM, NirHUJI <notifications@github.com> wrote:\n\n> vcanilkumar, read the api- you have a register command there. all you need\n> to do is:\n> 1.put your real phone number, choose any identity and any nickname.\n> 2. request confirmation code using the api.\n> 3. register using the code that had been sent to your phone. (you have a\n> register command in the api).\n> 4. the register command will return you a json object that conatins the\n> key \"pw\" with your password. use this password for login.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/sumppen/WhatsApi4J/issues/17#issuecomment-90862560>.\n>\n"}}