Beispiel #1
0
 function sfsi_getlinkedin_follower($ln_company, $APIsettings)
 {
     require_once SFSI_DOCROOT . '/helpers/linkedin-api/linkedin-api.php';
     $url = 'http' . (empty($_SERVER['HTTPS']) ? '' : 's') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
     $linkedin = new LinkedIn($APIsettings['ln_api_key'], $APIsettings['ln_secret_key'], $APIsettings['ln_oAuth_user_token'], $url);
     $followers = $linkedin->getCompanyFollowersByName($ln_company);
     return strip_tags($followers);
 }
 function sfsi_getlinkedin_follower($ln_company, $APIsettings)
 {
     require_once SFSI_DOCROOT . '/helpers/linkedin-api/linkedin-api.php';
     $scheme = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https" : "http";
     $url = $scheme . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
     $linkedin = new LinkedIn($APIsettings['ln_api_key'], $APIsettings['ln_secret_key'], $APIsettings['ln_oAuth_user_token'], $url);
     $followers = $linkedin->getCompanyFollowersByName($ln_company);
     return strip_tags($followers);
 }