Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linkedin-public-profile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mbas
linkedin-public-profile
Commits
780eaf77
Commit
780eaf77
authored
Feb 19, 2016
by
Julian Beisenkötter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme update
parent
1f3b83fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
README.md
README.md
+21
-2
No files found.
README.md
View file @
780eaf77
...
...
@@ -20,14 +20,33 @@ var LinkedInProfile = require('linkedin-public-profile');
just call the module with a public linkedin profile url. It returns a promise which resolves to the profile.
```
javascript
var
LinkedInProfile
=
require
(
'
linkedin-public-profile
'
);
var
LinkedInProfile
=
require
(
'
./index
'
);
var
url
=
'https://de.linkedin.com/in/julian-beisenk%C3%B6tter-77038939'
;
// standard usage
LinkedInProfile
(
url
)
.
then
(
function
(
profile
){
.
then
(
function
(
profile
){
// chain your logic
console
.
log
(
profile
);
});
// With links to similar profiles
LinkedInProfile
(
url
,
true
)
.
then
(
function
(
result
){
console
.
log
(
result
.
profile
);
// the requested profile
console
.
log
(
result
.
links
);
// the featured profiles on the page
});
// usage with HTML
var
request
=
require
(
'request-promise'
);
request
(
url
)
// request with html output
.
then
(
function
(
html
){
// promise chain
return
LinkedInProfile
(
html
)
// return the LinkedInProfile promise
})
.
then
(
function
(
profile
){
// chain your logic
console
.
log
(
profile
);
});
```
The result looks like:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment