mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
added toObj method
This commit is contained in:
@@ -39,6 +39,16 @@ export class Company {
|
||||
return (raw) ? empAll : empAll.map(eRaw => new LinkedInProfile(eRaw, this.#APIRef));
|
||||
}
|
||||
|
||||
toObj() {
|
||||
return {
|
||||
data: {
|
||||
title: { text: this.name },
|
||||
entityUrn: this.urn,
|
||||
navigationUrl: this.url,
|
||||
trackingUrn: `urn:li:company:${this.entityNum}`
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<JSON[] | LinkedInProfile[]>}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"name": "linkedin-api-js",
|
||||
"version": "1.0.0-14",
|
||||
"version": "1.0.0-15",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
||||
Reference in New Issue
Block a user