Skip to content

mgcrea/cake.linkedin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Download / clone the plugin to plugins/linkedin

  2. Add the component:

var $components = array(
	'Linkedin.Linkedin' => array(
		'appKey' => '--your api key--',
		'appSecret' => '--your secret code--',
	)
);
  1. Create a login action in the controller to let people allow your app access to their LinkedIn

  2. Once they're authenticated, call queries on the component (or the attached vendor attribute)

Check Logged-in Status

You can check oauth.linkedin.access in the session to see if it is set/true when the member is logged in.

If you wish to go past the duration of the session, store the Linkedin->login() response somewhere and set it to Linkedin->settings['token'] before you start querying. There is a chance the token may expire on LinkedIn's side however.

Additional Functionality

Since this is a work in progress, you can get direct access to the vendor by doing $this->Linkedin->linkedin->whatever() from the controller. The vendor is stored as a $linkedin attribute of the component and is deently well documented (along with LinkedIn's own API).

More and more methods however will be expanded in the component to be more consistent with CakePHP, and it is highly likely that a behavior or datasource will be developed also.

About

LinkedIn API support for Cakephp. I'm not sure what layers it will all go in yet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%