-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
68 lines (64 loc) · 1.98 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
var Airtable = require('airtable');
var base = new Airtable({apiKey: process.env.AIRTABLE_API_KEY}).base('appkTlqcgqg51vl5o');
base('Students').select({
// Selecting the first 10 records in Grid view:
maxRecords: 100,
view: "Current talents (to send)",
sort: [{field: 'created_time', direction: 'desc'}]
}).eachPage(function page(records, fetchNextPage) {
// This function (`page`) will get called for each page of records.
records.forEach(function(record) {
console.log(
'\n',
'\n',
'\n',
'🧑',
record.get('Full name'),
"\n",
'👤 42 Login:',
record.get('Login'),
"\n",
'💻 Technology:',
record.get('Technology'),
"\n",
"📧 ",
record.get('Email'),
"\n",
"📞 ",
record.get('Phone Number'),
"\n",
'🔗 Online portfolio:',
record.get('Online portfolio'),
"\n",
"🔗 Linkedin",
record.get('Linkedin url'),
"\n",
"🎓 42 level:",
record.get('42 level?'),
"\n",
"🖋 Contract:",
record.get('What contract are you looking for?'),
"\n",
"🤚 Motivations:",
record.get('What motivates you to work in a startup?'),
"\n",
"🗝 Experience:",
record.get('Experience on each technology you want to work on'),
"\n",
"💰 Compensation:",
record.get('What compensation are you looking for?'),
"\n",
"📍 Where:",
record.get('Where do you want to be based?'),
"\n",
"🏫 Which campus:",
record.get('Which campus are you from?'),
);
});
// To fetch the next page of records, call `fetchNextPage`.
// If there are more records, `page` will get called again.
// If there are no more records, `done` will get called.
fetchNextPage();
}, function done(err) {
if (err) { console.error(err); return; }
});