Browse Source

add check company using spirit ID

k.niemeskern 2 years ago
parent
commit
7f7bc5807d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      index.js
  2. 1 1
      lib/API.js

+ 1 - 1
index.js

@@ -11,7 +11,7 @@ const mail =  require('./notification.js')
 
 let info = {
     followers: 1,
-    companyID: null,
+    companyID: "991997",
     orgaName: "spirit_3",
     tokens: null,
     expire: 0,

+ 1 - 1
lib/API.js

@@ -26,7 +26,7 @@ class API {
     static getCompanyID(info) {
         return new Promise((resolve, reject) => {
             
-            const url = '"https://api.linkedin.com/v2/search?q=companiesV2&baseSearchParams.keywords=spirit_3"';
+            const url = `https://api.linkedin.com/v2/organizations/${info.companyID}`;
             const headers = {
                 'Authorization': 'Bearer ' + info.token,
                 'cache-control': 'no-cache',