Repository navigation
Expand file tree
/
Copy pathexample.js
More file actions
44 lines (36 loc) · 1.38 KB
/
Copy pathexample.js
File metadata and controls
44 lines (36 loc) · 1.38 KB
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
// CommonJS Example
const { SchengenChecker } = require('./dist/index.js');
async function main() {
console.log('🔍 Schengen Randevu Checker - Example\n');
// Create checker instance
const checker = new SchengenChecker({
sehir: 'ankara',
rateLimit: 2000
});
// Example 1: Check single country
console.log('📍 Example 1: Checking France...');
const fransa = await checker.musaitRandevuKontrol('fransa');
console.log('Result:', fransa);
console.log('');
// Example 2: Get visa center info
console.log('📍 Example 2: Visa center information');
const merkez = checker.vizeMerkeziBilgisi('hollanda');
console.log('Center:', merkez);
console.log('');
// Example 3: Filter by city
console.log('📍 Example 3: Visa centers in Ankara');
const ankaraCenters = checker.sehreGoreVizeMerkezleri('ankara');
console.log(`Found ${ankaraCenters.length} centers`);
ankaraCenters.slice(0, 3).forEach(center => {
console.log(` - ${center.ulke}: ${center.telefon}`);
});
console.log('');
// Example 4: Check multiple countries
console.log('📍 Example 4: Checking multiple countries...');
const results = await checker.topluRandevuKontrol(['fransa', 'hollanda']);
results.forEach(result => {
console.log(` ${result.ulke}: ${result.durum} - ${result.mesaj}`);
});
console.log('\n✅ All examples completed!');
}
main().catch(console.error);