Merhaba,
trendyola bağlanırken 401 hatası veriyor.Konuya vakıf bir arkadaş yardımcı olursa sevinirim.
api_key =“xxxxxxxxxx”
api_secret=“xxxxxxxxxx”
api_url = ‘https://api.trendyol.com/sapigw/suppliers/xxxxx/orders’
headers = {
"User-Agent": "xxxxx - SelfIntegration",
"Content-Type": "application/json",
"Authorization": "Basic " + api_key+ ":" + api_secret
}
response = requests.get(api_url, headers=headers)
hata ilertisi
Ürün yükleme işlemi başarısız. Hata kodu: 401
Hata mesajı: {“timestamp”:1708865772927025,“exception”:“TrendyolAuthorizationException”,“errors”:[{“key”:“basic.authorization.failed”,“message”:“Business exception occurred basic.authorization.failed “,“errorCode”:””,“args”:null}]}