Skip to content

krystiangw/raportive_api_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raportive API plugin

======================

Node script using Rapportive API. Based on the user name and domain, script searches correct email address.

Requirements

1. You need Node.js

brew install node

2. Clone repository

git clone git@github.com:krystiangw/raportive_api_plugin.git

3 Install node dependiences

cd raportive_plugin
npm install

Using

There are two ways

1. ExpressJS API

Set valid raportive token.

/token?set=OAPtKYT2186sU2lg5bZvts5kjwtla5Fh-Qfi

You can than check token

/token

Search emails with params:

firstName
lastName
domain

Example:

/profile?firstName=john&lastName=smith&domain=gmail.com

2.CSV script

Be sure to set env TOKEN variable. TOKEN is auth token returned by Raportive API. Example:

TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js

As input it accepts csv file with three column: firstName, lastName and domain. Raw input file example:

firstName,lastName,domain,
jan, koper, gmail.com,
john, smith, gmail.com,

Script generate list of likely email addresses, verify it and return the correct email addresses. Generated list for: jan, koper, gmail.com,

'jan@gmail.com',
'koper@gmail.com',
'jankoper@gmail.com',
'jan.koper@gmail.com',
'jan-koper@gmail.com',
'j.koper@gmail.com',
'jkoper@gmail.com',
'jank@gmail.com',
'koperjan@gmail.com',
'koper.jan@gmail.com',
'koper-jan@gmail.com',
'k.jan@gmail.com',
'kjan@gmail.com',
'koperj@gmail.com'

You can set input file path as argument. By default path is './input.csv'

INPUT="my_file.csv" TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js

You can set output file path as argument. By default path is './output.csv'

OUTPUT="my_file.csv" TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js

Response

Sample response. Raw csv file:

"email","first-name","last-name","headline"
"jankoper@gmail.io","jan","koper","Attended Politechnika Krakowska im. Tadeusza Kościuszki""email","first-name","last-name","headline"
"johnsmith@gmail.com","John","Smith","Branch Manager at some big company"
v":0
}

About

Node script using Raportive API. Based on the name of the person and the domain script searches for correct email in linkedin database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors