المهام
سرد جميع المهام
Section titled سرد جميع المهاماسترجع جميع المهام، بما في ذلك المكتملة أو الملغاة.
الطريقة
Section titled الطريقةGET
/api/v1/:projectKey/jobs
ترويسات الطلب
Section titled ترويسات الطلبAuthorization: {YOUR_ORGANIZATION_API_KEY}: يمكن العثور على المفتاح في ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
رموز الحالة
Section titled رموز الحالة200: تُرسَل الاستجابة بصيغة JSON في النص
مثال على الطلب
Section titled مثال على الطلبcurl -X GET \
https://openreplay.example.com/api/v1/3sWXSsqHgSKnE87YkNJK/jobs \
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
مثال على الاستجابة
Section titled مثال على الاستجابة{
"data": [
{
"jobId": 3451,
"description": "Delete user sessions of userId = shekar@example.com",
"status": "scheduled",
"projectId": 1,
"action": "delete_user_data",
"referenceId": "mehdi@openreplay.com",
"createdAt": 1623912955277,
"updatedAt": 1623912955277,
"startAt": 1623954600000,
"errors": null
},
{
"jobId": 3452,
"description": "Delete user sessions of userId = shekar@example.com",
"status": "cancelled",
"projectId": 1,
"action": "delete_user_data",
"referenceId": "mehdi@openreplay.com",
"createdAt": 1623912962910,
"updatedAt": 1623913015276,
"startAt": 1623954600000,
"errors": null
}
]
}
الحصول على تفاصيل المهمة
Section titled الحصول على تفاصيل المهمةتُرجِع status المهمة وتفاصيل أخرى مثل createdAt وreferenceId وerrors.
الطريقة
Section titled الطريقةGET
/api/v1/:projectKey/jobs/:jobId
المعاملات
Section titled المعاملات| الاسم | النوع | الوصف |
|---|---|---|
| jobId | string | المعرّف الذي يُرجِعه استدعاء حذف المستخدم (مطلوب) |
ترويسات الطلب
Section titled ترويسات الطلبAuthorization: {YOUR_ORGANIZATION_API_KEY}: يمكن العثور على المفتاح في ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
رموز الحالة
Section titled رموز الحالة200: تُرسَل الاستجابة بصيغة JSON في النص
مثال على الطلب
Section titled مثال على الطلبcurl -X GET \
https://openreplay.example.com/api/v1/3sWXSsqHgSKnE87YkNJK/jobs/3451\
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
مثال على الاستجابة
Section titled مثال على الاستجابة{
"data": {
"jobId": 3451,
"description": "Delete user sessions of userId = shekar@example.com",
"status": "scheduled",
"projectId": 1,
"action": "delete_user_data",
"referenceId": "mehdi@openreplay.com",
"createdAt": 1623912955277,
"updatedAt": 1623912955277,
"startAt": 1623954600000,
"errors": null
}
}
إلغاء المهمة
Section titled إلغاء المهمةألغِ المهمة إذا لم تبدأ بعد أو إذا كانت لا تزال قيد التنفيذ.
الطريقة
Section titled الطريقةDELETE
/api/v1/:projectKey/jobs/:jobId
المعاملات
Section titled المعاملات| الاسم | النوع | الوصف |
|---|---|---|
| jobId | string | المعرّف الذي يُرجِعه استدعاء حذف المستخدم (مطلوب) |
ترويسات الطلب
Section titled ترويسات الطلبAuthorization: {YOUR_ORGANIZATION_API_KEY}: يمكن العثور على المفتاح في ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
رموز الحالة
Section titled رموز الحالة200: تُرسَل الاستجابة بصيغة JSON في النص
501: يُرجَع إذا تعذّر إلغاء المهمة
مثال على الطلب
Section titled مثال على الطلبcurl -X DELETE \
https://openreplay.example.com/api/v1/3sWXSsqHgSKnE87YkNJK/jobs/3452 \
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
مثال على الاستجابة
Section titled مثال على الاستجابة{
"data": {
"jobId": 3452,
"description": "Delete user sessions of userId = shekar@example.com",
"status": "cancelled",
"projectId": 1,
"action": "delete_user_data",
"referenceId": "mehdi@openreplay.com",
"createdAt": 1623912962910,
"updatedAt": 1623913015276,
"startAt": 1623954600000,
"errors": null
}
}