{"action":"opened","issue":{"url":"https://api.github.com/repos/okta/okta-sdk-php/issues/34","repository_url":"https://api.github.com/repos/okta/okta-sdk-php","labels_url":"https://api.github.com/repos/okta/okta-sdk-php/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/okta/okta-sdk-php/issues/34/comments","events_url":"https://api.github.com/repos/okta/okta-sdk-php/issues/34/events","html_url":"https://github.com/okta/okta-sdk-php/issues/34","id":252176603,"number":34,"title":"Getting blank response all the time","user":{"login":"anilkumar-isol","id":18567359,"avatar_url":"https://avatars2.githubusercontent.com/u/18567359?v=4","gravatar_id":"","url":"https://api.github.com/users/anilkumar-isol","html_url":"https://github.com/anilkumar-isol","followers_url":"https://api.github.com/users/anilkumar-isol/followers","following_url":"https://api.github.com/users/anilkumar-isol/following{/other_user}","gists_url":"https://api.github.com/users/anilkumar-isol/gists{/gist_id}","starred_url":"https://api.github.com/users/anilkumar-isol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anilkumar-isol/subscriptions","organizations_url":"https://api.github.com/users/anilkumar-isol/orgs","repos_url":"https://api.github.com/users/anilkumar-isol/repos","events_url":"https://api.github.com/users/anilkumar-isol/events{/privacy}","received_events_url":"https://api.github.com/users/anilkumar-isol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T06:42:02Z","updated_at":"2017-08-23T06:42:02Z","closed_at":null,"body":"Hi there,\r\n\r\nI have already used okta api with my own custom code but I'm using this sdk just to get custom attributes.\r\n\r\nQuestion1: As we know that okta api doesn't return custom attributes for users until we update that object with post method. Also I read a discussion thread(https://support.okta.com/help/answers?id=906F0000000HzygIAC) says that Java-sdk return custom attributes with some (unmapped()) function so my question is, Is this sdk will return custom attributes without any extra efforts?\r\n\r\nQuestion2: I have installed this sdk but when I tried to get a user, it always gives me a blank response. What should I have to do in this situation? \r\n\r\nThis is my code. \r\n\r\n```\r\nini_set(\"display_errors\",1);\r\nerror_reporting(E_ALL);\r\nini_set('display_startup_errors', TRUE);\r\n\r\ninclude \"vendor/autoload.php\";\r\nuse Okta;\r\n\r\n\r\n$okta = new Okta\\Client('OrgName', 'API_TOKEN', [\r\n    'preview'   => true,  // Use the okta preview (oktapreview.com) domain\r\n]);\r\n\r\n$user = $okta->user->get(\"00u5zrthay2733Fir0h7\"); //user Id\r\n\r\necho \"<pre>\";print_r($user);echo \"</pre>\";die();\r\n```\r\n\r\nPlease help me out. \r\n\r\nThanks in advance"}}
{"actor":{"display_login":"anilkumar-isol"}}