{"action":"created","issue":{"url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/140","repository_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client","labels_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/140/comments","events_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/140/events","html_url":"https://github.com/Happyr/LinkedIn-API-client/issues/140","id":217779622,"number":140,"title":"Historical Follower Data","user":{"login":"hursty1986","id":26669136,"avatar_url":"https://avatars3.githubusercontent.com/u/26669136?v=3","gravatar_id":"","url":"https://api.github.com/users/hursty1986","html_url":"https://github.com/hursty1986","followers_url":"https://api.github.com/users/hursty1986/followers","following_url":"https://api.github.com/users/hursty1986/following{/other_user}","gists_url":"https://api.github.com/users/hursty1986/gists{/gist_id}","starred_url":"https://api.github.com/users/hursty1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hursty1986/subscriptions","organizations_url":"https://api.github.com/users/hursty1986/orgs","repos_url":"https://api.github.com/users/hursty1986/repos","events_url":"https://api.github.com/users/hursty1986/events{/privacy}","received_events_url":"https://api.github.com/users/hursty1986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-29T06:44:20Z","updated_at":"2017-03-29T11:16:11Z","closed_at":null,"body":"| Q                       | A\r\n| ----------------------- | ---\r\n| Bug?                    | no\r\n| New Feature?            | no\r\n| Are you using composer? yes\r\n| Version                 | \r\n\r\n\r\n#### Actual Behavior\r\n\r\nI was hoping somebody could help with this. I am unable to get the historical follower data from my company account using the api. I am able to connect and authenticate but unable to do anything after that.\r\n\r\nPerhaps this functionality is not built into the api client?\r\n\r\n\r\n#### Expected Behavior\r\n\r\nI am hoping that I can return a json format of historical follower data in the same way as when I use apigee.\r\n\r\n\r\n#### Steps to Reproduce\r\n\r\ncode below:\r\nrequire __DIR__ . '/vendor/autoload.php';\r\n\r\n$linkedIn=new Happyr\\LinkedIn\\LinkedIn('819ehyojqhis4x', 'pskKOktXc9NFuTWi');\r\n\r\nif ($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    exit();\r\n} elseif ($linkedIn->hasError()) {\r\n    echo \"User canceled the login.\";\r\n    exit();\r\n}\r\n\r\n//if not authenticated\r\n$url = $linkedIn->getLoginUrl();\r\necho \"<a href='$url'>Login with LinkedIn</a>\";\r\n\r\n\r\n$options = array('json'=>\r\n                  array ('time-granularity' => \"day\",\r\n                        'start-timestamp' => 1488326400000,\r\n                        'format'          => \"json\"\r\n                        )\r\n\r\n                );\r\n\r\n$results = $linkedIn->get('v1/companies/41732/historical-follow-statistics', $options);\r\n\r\necho $results;\r\nvar_dump ($results);\r\n\r\n\r\n#### Possible Solutions\r\n\r\nI have looked through the code and I am unsure of the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/comments/290059241","html_url":"https://github.com/Happyr/LinkedIn-API-client/issues/140#issuecomment-290059241","issue_url":"https://api.github.com/repos/Happyr/LinkedIn-API-client/issues/140","id":290059241,"user":{"login":"hursty1986","id":26669136,"avatar_url":"https://avatars3.githubusercontent.com/u/26669136?v=3","gravatar_id":"","url":"https://api.github.com/users/hursty1986","html_url":"https://github.com/hursty1986","followers_url":"https://api.github.com/users/hursty1986/followers","following_url":"https://api.github.com/users/hursty1986/following{/other_user}","gists_url":"https://api.github.com/users/hursty1986/gists{/gist_id}","starred_url":"https://api.github.com/users/hursty1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hursty1986/subscriptions","organizations_url":"https://api.github.com/users/hursty1986/orgs","repos_url":"https://api.github.com/users/hursty1986/repos","events_url":"https://api.github.com/users/hursty1986/events{/privacy}","received_events_url":"https://api.github.com/users/hursty1986/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T11:16:11Z","updated_at":"2017-03-29T11:16:11Z","body":"Highly embarrassing, thank you. You can see I'm new to PHP\r\n\r\nFrustratingly I still dont get the desired response.\r\n![screen shot 2017-03-29 at 3 00 38 pm](https://cloud.githubusercontent.com/assets/26669136/24451756/215454d4-1491-11e7-8ba4-8e54d72d779c.png)\r\n\r\nI've checked the get function that asks for $resource,$options and I believe all of them are set.\r\n\r\nResource = v1/companies/41732/historical-follow-statistics\r\nOptions = my array (i've checked the time is correct)\r\n\r\nI think maybe its because I'm not passing my token back with the get request?"}}
{"actor":{"display_login":"hursty1986"}}