inlet / cakephp-linkedin Goto Github PK
View Code? Open in Web Editor NEWCakePHP plugin which makes using the LinkedIn API a breeze.
CakePHP plugin which makes using the LinkedIn API a breeze.
The plugin has been working very well for me for calls such as:
$this->Linkedin->call('people/~', etc..
Where the information being retrieved is from the currently logged in user.
However when I try to retrieve information from other users e.g.
$this->Linkedin->call('people/id=abcdefg', etc.. it gives me an internal error:
Error: An Internal Error Has Occurred.
Stack Trace
#0 /home/content/m/d/p/mdpless/html/weavapp/Controller/UsersController.php(165): LinkedinComponent->call('people/id=abcde...', Array)
#1 [internal function]: UsersController->LinkedinLogin2()
#2 /home/content/m/d/p/mdpless/html/NoteSnack/lib/Cake/Controller/Controller.php(473): ReflectionMethod->invokeArgs(Object(UsersController), Array)
#3 /home/content/m/d/p/mdpless/html/NoteSnack/lib/Cake/Routing/Dispatcher.php(107): Controller->invokeAction(Object(CakeRequest))
#4 /home/content/m/d/p/mdpless/html/NoteSnack/lib/Cake/Routing/Dispatcher.php(89): Dispatcher->_invoke(Object(UsersController), Object(CakeRequest), Object(CakeResponse))
#5 /home/content/m/d/p/mdpless/html/weavapp/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#6 {main}
I think this is compatible with cakephp 1.3. Can you upgrade it to cakephp 2.x
Hello Team,
When I receive XML response using call($path, $args) function (Linkedin.php),
Response contain some number of characters after some intervals.
For eg:
2000
Here response starts with "2000", and this case occur multiple time in response. So when we convert this response to an array, it will return blank array as "$this->_decode($result);" function does not consider $result as a pure XML format due to some garbage values in between tags.
Can you please provide me the solution to fix it?
Hey there, great lil bit of software, finding it very useful. Have you considered adding a way to retrieve the current access token so that it can be stored into the db? I'd be happy to contribute a function or two.
if you get the "The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition..." notice and error you will need to serialize and unserialize the $requestToken $accessToken when you write and read from session. lines to edit are : 55,69,73,85
Hey again.
I Noticed that Linkedin has an authentication path using https://www.linkedin.com/uas/oauth/authenticate which is similar to the one already being utilized by this lib (https://www.linkedin.com/uas/oauth/authorize).
I think, if anything should be added to make this package complete, this might be it. I think there are valid contexts in which a user should not have to reverify their connection to a specific site (e. g. if its the only method of authentication). This would make it a one click deal. Interested? I wouldn't mind adding the function.
A very nice and detailed example was given for the "call" function. Can someone please provide a sample of the "send" function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.