{"Message":"This error may result from an incorrect, expired, or invalid API key or a wrong protocol. Verify that the values are correct and set in the API apps management. For security, Activerail does not specify which of these values is incorrect."}
השגיאה הזו יכולה לקרות מכמה סיבות
-
המפתח לא פעיל
-
החשבון לא פעיל (ולכן גם המפתח)
-
הגבלת IP חוסמת בקשות מכתובת IP אחרת
אם המפתח עובד בפלטפורמת הבדיקה שלנו או ב-Postman, סימן שהכותרת לא מוגדרת נכון בקוד.
שימו לב: שם הכותרת צריך להיות בדיוק "Authorization", בלי סוג אימות נוסף.
אל תכללו בכותרת "bearer" או "api-token".
דוגמה ב-C#
client.DefaultRequestHeaders.Add("Authorization", "your-token");