🔓Yetkilendirme
// Erişim ve gizli anahtarları ortam değişkenlerinden al
const access = pm.variables.get("x2-access-key");
const secret = pm.variables.get("x2-secret-key");
// Bunları '|' ile tek bir dizede birleştir
const str = access + '|' + secret;
// Birleştirilmiş dizenin SHA256 hash'ini hesapla
const hash = CryptoJS.SHA256(str).toString(CryptoJS.enc.Hex);
// Authorization başlığını 'Bearer {hash}' ile ayarla
request.headers.set({ key: 'Authorization', value: 'Bearer ' + access + '|' + hash });Last updated