using System.Threading.Tasks;
using System.Collections.Generic;
using System.Text.Json.Serialization;
private static readonly string apiKey = "patEDzbL0nB6EVsLi.0b0a1d6c85ec23e4cdaa1cfda671672e2f50179dd02d61242eb311cadd0b94a5";
private static readonly string baseId = "app0aUX9icPNnwKLA";
private static readonly string tableName = "Order Line Items";
static async Task Main(string[] args)
Console.WriteLine("Airtable'dan kayıtlar listeleniyor...");
await ListAirtableRecordsAsync();
private static async Task ListAirtableRecordsAsync()
using (AirtableBase airtableBase = new AirtableBase(apiKey, baseId))
var response = await airtableBase.ListRecords(
filterByFormula: "{Status} = 'DELIVERED TR'",
foreach (var record in response.Records)
foreach (var field in record.Fields)
Console.WriteLine($"Field: {field.Key} = {field.Value}");
Console.WriteLine("-----------------------------------");
offset = response.Offset;
if (string.IsNullOrEmpty(offset))
Console.WriteLine($"Error: {response.AirtableApiError.ErrorMessage}");
} while (!string.IsNullOrEmpty(offset));