Kimlik doğrulama
Kullanıcı fotoğrafı
Kullanıcının fotoğrafı (image/jpeg). Adresteki ?v= sürümüyle 30 gün önbelleğe alınabilir; ETag + If-None-Match → 304. Fotoğraf yoksa 404. Adres /me, /profile, kullanıcı satırları (photo) ve yorumlar (author_photo) ile gelir.
Yetkilendirme
AuthorizationheaderzorunluBearer belirteci: API anahtarı (sk_…), OAuth erişim belirteci (mcp_…) ya da mobil oturum (xk_…).
Kapsam:
crm.readYol parametreleri
idintegerzorunluKullanıcı kimliği.
Hatalar
| HTTP | error | Anlamı |
|---|---|---|
404 | not_found | Kayıt bulunamadı. |
İstek
curl https://ornek.solk.app/api/v1/users/{id}/photo \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/users/{id}/photo", {
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.get(
"https://ornek.solk.app/api/v1/users/{id}/photo",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Yanıt