Coder Social home page Coder Social logo

cakephp-linkedin's People

Contributors

amrosama2020 avatar inlet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cakephp-linkedin's Issues

Retrieve information from people not currently logged in

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}

Get XML response with some garbage characters

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

uwBZpwZyEN Anurag Acharya Senior Web Developer http://m.c.lnkd.licdn.com/mpr/mprx/0_fo2QEposX71bQamXfHYzEYIe6Sn6QHmXDD4JEYJHJmC9MuMk_2pEXOS6HL9JLf7HadaZ5JFWyQ6J

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?

Allow for retrieval of access token.

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.

Authenticate vs. Authorize

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.

Send Example

A very nice and detailed example was given for the "call" function. Can someone please provide a sample of the "send" function.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.