{"action":"created","issue":{"url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/128","repository_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client","labels_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/128/comments","events_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/128/events","html_url":"https://github.com/Happyr/LinkedIn-API-client/issues/128","id":177799583,"number":128,"title":"Happyr\\LinkedIn\\LinkedIn::getLoginUrl() returns empty string","user":{"login":"sterichards","id":2899828,"avatar_url":"https://avatars.githubusercontent.com/u/2899828?v=3","gravatar_id":"","url":"https://api.github.com/users/sterichards","html_url":"https://github.com/sterichards","followers_url":"https://api.github.com/users/sterichards/followers","following_url":"https://api.github.com/users/sterichards/following{/other_user}","gists_url":"https://api.github.com/users/sterichards/gists{/gist_id}","starred_url":"https://api.github.com/users/sterichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterichards/subscriptions","organizations_url":"https://api.github.com/users/sterichards/orgs","repos_url":"https://api.github.com/users/sterichards/repos","events_url":"https://api.github.com/users/sterichards/events{/privacy}","received_events_url":"https://api.github.com/users/sterichards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T14:26:31Z","updated_at":"2016-09-19T14:34:30Z","closed_at":null,"body":"| Q                       | A\r\n| ----------------------- | ---\r\n| Bug?                    |yes\r\n| New Feature?            | no\r\n| Are you using composer? | yes\r\n| Version                 | Specific version or SHA of a commit\r\n\r\n\r\n#### Actual Behavior\r\n\r\nWhat is the actual behavior?\r\nEmpty string returned from Linkedin::getLoginUrl()\r\n\r\n#### Expected Behavior\r\n\r\nReturn of a URL for the user to authenticate via\r\n\r\n\r\n#### Steps to Reproduce\r\n\r\n```php\r\n        $appId = $this->container->getParameter('happyr.linkedin.app_id');\r\n        $appSecret = $this->container->getParameter('happyr.linkedin.app_secret');\r\n\r\n        $linkedIn = new LinkedIn($appId, $appSecret);\r\n\r\n        if ($linkedIn->isAuthenticated()) {\r\n            //we know that the user is authenticated now. Start query the API\r\n            $user=$linkedIn->get('v1/people/~:(firstName,lastName)');\r\n            echo \"Welcome \".$user['firstName'];\r\n\r\n            exit();\r\n        } elseif ($linkedIn->hasError()) {\r\n            echo \"User canceled the login.\";\r\n            exit();\r\n        }\r\n\r\n\r\n        //if not authenticated\r\n        $url = $linkedIn->getLoginUrl();\r\n        echo \"<a href='$url'>Login with LinkedIn</a>\";\r\n        exit();\r\n```"},"comment":{"url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/comments/248010845","html_url":"https://github.com/Happyr/LinkedIn-API-client/issues/128#issuecomment-248010845","issue_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/128","id":248010845,"user":{"login":"Nyholm","id":1275206,"avatar_url":"https://avatars.githubusercontent.com/u/1275206?v=3","gravatar_id":"","url":"https://api.github.com/users/Nyholm","html_url":"https://github.com/Nyholm","followers_url":"https://api.github.com/users/Nyholm/followers","following_url":"https://api.github.com/users/Nyholm/following{/other_user}","gists_url":"https://api.github.com/users/Nyholm/gists{/gist_id}","starred_url":"https://api.github.com/users/Nyholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nyholm/subscriptions","organizations_url":"https://api.github.com/users/Nyholm/orgs","repos_url":"https://api.github.com/users/Nyholm/repos","events_url":"https://api.github.com/users/Nyholm/events{/privacy}","received_events_url":"https://api.github.com/users/Nyholm/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T14:34:30Z","updated_at":"2016-09-19T14:34:30Z","body":"I suspect that you are getting some errors. Have you debugged the code?"}}
{"actor":{"display_login":"Nyholm"}}