{"action":"created","issue":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1471","labels_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1471/labels{/name}","comments_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1471/comments","events_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1471/events","html_url":"https://github.com/WHAnonymous/Chat-API/issues/1471","id":126572917,"number":1471,"title":"codeRequest Response","user":{"login":"ingrocha","id":6608826,"avatar_url":"https://avatars.githubusercontent.com/u/6608826?v=3","gravatar_id":"","url":"https://api.github.com/users/ingrocha","html_url":"https://github.com/ingrocha","followers_url":"https://api.github.com/users/ingrocha/followers","following_url":"https://api.github.com/users/ingrocha/following{/other_user}","gists_url":"https://api.github.com/users/ingrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/ingrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingrocha/subscriptions","organizations_url":"https://api.github.com/users/ingrocha/orgs","repos_url":"https://api.github.com/users/ingrocha/repos","events_url":"https://api.github.com/users/ingrocha/events{/privacy}","received_events_url":"https://api.github.com/users/ingrocha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-14T04:06:09Z","updated_at":"2016-01-14T19:53:12Z","closed_at":"2016-01-14T07:42:11Z","body":"Sorry, im new in this im trying to use your api in cakePhp but i dont now how consume your response:\r\n```\r\nArray\r\n(\r\n    [method] => sms\r\n    [in] => 123456789\r\n    [cc] => 34\r\n    [id] => 扴v??,g??bd=_\r\n    [lg] => es\r\n    [lc] => ES\r\n    [sim_mcc] => 214\r\n    [sim_mnc] => 000\r\n    [mthod] => sms\r\n    [token] => 80d7c58e1fe817d9a64b6717afdbab2b\r\n)\r\nstdClass Object\r\n(\r\n    [status] => sent\r\n    [length] => 6\r\n    [method] => sms\r\n    [retry_after] => 1805\r\n)\r\n\r\n```\r\n\r\nI tried to jsonenconde but i can i called from a $.get this is my code!!\r\n\r\nthis is on my **view**\r\n```php\r\nfunction enviar(){\r\n\t\t\t\r\n\t\t\tvar datos=$('#RegitrerRegistrerForm').serialize();\r\n\t\t\t$.get(\"<?php echo $this->html->url(array('controller'=>'Messages','action'=>'Registrar')) ?>\"\r\n\t\t\t\tvar res = jQuery.parseJSON(data);\r\n\t\t\t\t});\r\n\t\t}\r\n```\r\n\r\n**In my Controller:**\r\n\r\n```php\r\n\tpublic function registrar(){\r\n\t\t\t$vendor=App::path('Vendor');\r\n\t\t\t//$this->layout = false;\r\n\r\n\t\t\tif ($this->request->is('get')) {\r\n\t\t\t\tApp::import( 'Vendor','Whatsapp/Registration');\t\r\n\t\t\t\t$username = $_GET['data']['Regitrer']['Numero'];    // Your number with country code, ie: 34123456789\r\n\t\t\t\t$debug    = true;  // Shows debug log, this is set to false if not specified\r\n\r\n\t\t\t\t$identityExists = file_exists($vendor['0'].\"/Whatsapp/wadata/id.$username.dat\");\r\n\r\n\t\t\t\t$w = new Registration($username, $debug);\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\t$w->codeRequest('sms');\r\n\t\t\t\t\t\r\n\t\t\t\t}catch (Exception $e) {\r\n\r\n        \t\t\t//echo $e->getMessage().\"\\n\";\r\n        \t\t\texit();\r\n    \t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/comments/171760857","html_url":"https://github.com/WHAnonymous/Chat-API/issues/1471#issuecomment-171760857","issue_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1471","id":171760857,"user":{"login":"ingrocha","id":6608826,"avatar_url":"https://avatars.githubusercontent.com/u/6608826?v=3","gravatar_id":"","url":"https://api.github.com/users/ingrocha","html_url":"https://github.com/ingrocha","followers_url":"https://api.github.com/users/ingrocha/followers","following_url":"https://api.github.com/users/ingrocha/following{/other_user}","gists_url":"https://api.github.com/users/ingrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/ingrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingrocha/subscriptions","organizations_url":"https://api.github.com/users/ingrocha/orgs","repos_url":"https://api.github.com/users/ingrocha/repos","events_url":"https://api.github.com/users/ingrocha/events{/privacy}","received_events_url":"https://api.github.com/users/ingrocha/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T19:53:12Z","updated_at":"2016-01-14T19:53:12Z","body":"Ty for our help i read al de wiki but this dont sayhow cai get the reponse with out the error an traslate your api just print it"}}