المذكرات
تسمح الذكريات للمستخدمين بتعريف مجموعات من الوثائق التي يمكن الوصول إليها بواسطة التطبيقات. توضح هذه الوثيقة واجهات برمجة التطبيقات المتاحة للذكريات.
قائمة الذكريات
طلبات مثال
curl -X GET \
https://api.rememberizer.ai/api/v1/mementos/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
إنشاء ميمنتو
طلبات مثال
curl -X POST \
https://api.rememberizer.ai/api/v1/mementos/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "مستندات العمل"}'
احصل على تفاصيل المذكرة
طلبات مثال
curl -X GET \
https://api.rememberizer.ai/api/v1/mementos/123/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
إدارة مستندات الميمنتو
طلبات مثال
curl -X POST \
https://api.rememberizer.ai/api/v1/mementos/memento_document/123/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"memento": "123",
"add": ["document_id_1", "document_id_2"],
"folder_add": ["folder_id_1"],
"remove": ["document_id_3"]
}'
حذف المذكرة
طلبات مثال
curl -X DELETE \
https://api.rememberizer.ai/api/v1/mementos/123/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
const deleteMemento = async (mementoId) => {
const response = await fetch(`https://api.rememberizer.ai/api/v1/mementos/${mementoId}/`, {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_JWT_TOKEN'
}
});
if (response.status === 204) {
console.log("تم حذف الميمنتو بنجاح");
} else {
console.error("فشل حذف الميمنتو");
}
};
deleteMemento(123);
import requests
def delete_memento(memento_id):
headers = {
"Authorization": "Bearer YOUR_JWT_TOKEN"
}
response = requests.delete(
f"https://api.rememberizer.ai/api/v1/mementos/{memento_id}/",
headers=headers
)
if response.status_code == 204:
print("تم حذف الميمنتو بنجاح")
else:
print("فشل حذف الميمنتو")
delete_memento(123)
{% endtabs %
Last updated