{"action":"opened","issue":{"url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/55","labels_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/55/comments","events_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/55/events","html_url":"https://github.com/Happyr/LinkedIn-API-client/issues/55","id":89450836,"number":55,"title":"Incorrect formatting of request when setting format","user":{"login":"albertleao","id":1950338,"avatar_url":"https://avatars.githubusercontent.com/u/1950338?v=3","gravatar_id":"","url":"https://api.github.com/users/albertleao","html_url":"https://github.com/albertleao","followers_url":"https://api.github.com/users/albertleao/followers","following_url":"https://api.github.com/users/albertleao/following{/other_user}","gists_url":"https://api.github.com/users/albertleao/gists{/gist_id}","starred_url":"https://api.github.com/users/albertleao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertleao/subscriptions","organizations_url":"https://api.github.com/users/albertleao/orgs","repos_url":"https://api.github.com/users/albertleao/repos","events_url":"https://api.github.com/users/albertleao/events{/privacy}","received_events_url":"https://api.github.com/users/albertleao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T02:58:53Z","updated_at":"2015-06-19T02:58:53Z","closed_at":null,"body":"Hello!\r\n\r\nI found an issue where when I set my default output to JSON like so:\r\n\r\n$linkedIn = new Happyr\\LinkedIn\\LinkedIn($key, $secret, 'json');\r\n\r\nit will incorrectly format some requests by appending the ?format=json parameter.\r\n\r\nFor example, the LinkedIn docs say that to list all companies that a member is an admin for you must query \"https://api.linkedin.com/v1/companies?format=json&is-company-admin=true\". Using this package creates the following query \"https://api.linkedin.com/v1/companies?format=json&is-company-admin=true?format=json\""}}