LinkedIn Extension
Vendor
MindTouch
Type Script
Categories Widgets
Requires MindTouch Deki 8.05.1 or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/linkedin.xml

 

Table of Contents

Description

This extension contains functions for embedding LinkedIn widgets.

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Functions

linkedin.CompanyInsider(company, style) : xml

Embed widget to show connections at a company.

Parameters:

NameTypeDescription
companystrName of the company.
stylestr(optional) Style for embedding widget. (one of "popup", "border", or "noborder"; default: "popup")


linkedin.Share(uri, title, origin, summary, label) : xml

Embed link to share a page with others on LinkedIn.

Parameters:

NameTypeDescription
uriuriURI of page to share.
titlestr(optional) Title of page. (default: none)
originstr(optional) Name of origin site where the page comes from. (default: none)
summarystr(optional) Summary of page contents. (default: none)
labelstr(optional) Label for link to share on LinkedIn. (default: 'Share on LinkedIn')


Script Source

<extension>
  <title>LinkedIn Extension</title>
  <label>LinkedIn</label>
  <copyright>Copyright (c) 2006-2009 MindTouch, Inc.</copyright>
  <description>This extension contains functions for embedding LinkedIn widgets.</description>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/LinkedIn</uri.help>
  <uri.logo>http://scripts.mindtouch.com/logos/linkedin-logo.png</uri.logo>
  <namespace>linkedin</namespace>

  <requires host="MindTouch Deki 8.05.1" />
  
  <function>
    <name>CompanyInsider</name>
    <description>Embed widget to show connections at a company.</description>
    <param name="company" type="str">Name of the company.</param>
    <param name="style" type="str" optional="true">Style for embedding widget. (one of "popup", "border", or "noborder"; default: "popup")</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <head>
          <script eval:src="'http://www.linkedin.com/companyInsider?script&amp;useBorder=' .. (($style !== 'noborder') ? 'yes' : 'no')" type="text/javascript" />
        </head>
        <body>
          <span eval:id="@id" />
          <eval:if test="($style ?? 'popup') === 'popup'">
            <script type="text/javascript">new LinkedIn.CompanyInsiderPopup(<eval:js value="@id" />, <eval:js value="$company" />);</script>
          </eval:if>
          <eval:else>
            <script type="text/javascript">new LinkedIn.CompanyInsiderBox(<eval:js value="@id" />, <eval:js value="$company" />);</script>
          </eval:else>
        </body>
      </html>
    </return>
  </function>

  <function>
    <name>Share</name>
    <description>Embed link to share a page with others on LinkedIn.</description>
    <param name="uri" type="uri">URI of page to share.</param>
    <param name="title" type="str" optional="true">Title of page. (default: none)</param>
    <param name="origin" type="str" optional="true">Name of origin site where the page comes from. (default: none)</param>
    <param name="summary" type="str" optional="true">Summary of page contents. (default: none)</param>
    <param name="label" type="str" optional="true">Label for link to share on LinkedIn. (default: 'Share on LinkedIn')</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <eval:expr>web.link(uri.appendquery('http://www.linkedin.com/shareArticle', { mini: 'true', url: $uri, title: $title, source: $origin, summary: $summary }), $label ?? 'Share on LinkedIn')</eval:expr>
        </body>
      </html>
    </return>
  </function>
</extension>


Samples

Note: you need to be signed into your LinkedIn account to see your connections.

        Output

To embed the CompanyInsider widget:

{{ linkedin.companyinsider("google", "noborder") }} 

Enter the name of a company to check your insider connections:

Company
 

       

Tag page
You must login to post a comment.