|
3350 | 3350 | }
|
3351 | 3351 | }
|
3352 | 3352 | },
|
| 3353 | + "/api/v2/subscribers/{subscriberId}/history": { |
| 3354 | + "get": { |
| 3355 | + "tags": [ |
| 3356 | + "subscribers" |
| 3357 | + ], |
| 3358 | + "summary": "Get subscriber event history", |
| 3359 | + "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. ", |
| 3360 | + "operationId": "15830d2425a969a7482eefb114234d47", |
| 3361 | + "parameters": [ |
| 3362 | + { |
| 3363 | + "name": "php-auth-pw", |
| 3364 | + "in": "header", |
| 3365 | + "description": "Session key obtained from login", |
| 3366 | + "required": true, |
| 3367 | + "schema": { |
| 3368 | + "type": "string" |
| 3369 | + } |
| 3370 | + }, |
| 3371 | + { |
| 3372 | + "name": "subscriberId", |
| 3373 | + "in": "path", |
| 3374 | + "description": "Subscriber ID", |
| 3375 | + "required": true, |
| 3376 | + "schema": { |
| 3377 | + "type": "integer" |
| 3378 | + } |
| 3379 | + }, |
| 3380 | + { |
| 3381 | + "name": "after_id", |
| 3382 | + "in": "query", |
| 3383 | + "description": "Page number (pagination)", |
| 3384 | + "required": false, |
| 3385 | + "schema": { |
| 3386 | + "type": "integer", |
| 3387 | + "default": 1 |
| 3388 | + } |
| 3389 | + }, |
| 3390 | + { |
| 3391 | + "name": "limit", |
| 3392 | + "in": "query", |
| 3393 | + "description": "Max items per page", |
| 3394 | + "required": false, |
| 3395 | + "schema": { |
| 3396 | + "type": "integer", |
| 3397 | + "default": 25 |
| 3398 | + } |
| 3399 | + }, |
| 3400 | + { |
| 3401 | + "name": "ip", |
| 3402 | + "in": "query", |
| 3403 | + "description": "Filter by IP address", |
| 3404 | + "required": false, |
| 3405 | + "schema": { |
| 3406 | + "type": "string" |
| 3407 | + } |
| 3408 | + }, |
| 3409 | + { |
| 3410 | + "name": "date_from", |
| 3411 | + "in": "query", |
| 3412 | + "description": "Filter by date (format: Y-m-d)", |
| 3413 | + "required": false, |
| 3414 | + "schema": { |
| 3415 | + "type": "string", |
| 3416 | + "format": "date" |
| 3417 | + } |
| 3418 | + }, |
| 3419 | + { |
| 3420 | + "name": "summery", |
| 3421 | + "in": "query", |
| 3422 | + "description": "Filter by summary text", |
| 3423 | + "required": false, |
| 3424 | + "schema": { |
| 3425 | + "type": "string" |
| 3426 | + } |
| 3427 | + } |
| 3428 | + ], |
| 3429 | + "responses": { |
| 3430 | + "200": { |
| 3431 | + "description": "Paginated list of subscriber events", |
| 3432 | + "content": { |
| 3433 | + "application/json": { |
| 3434 | + "schema": { |
| 3435 | + "properties": { |
| 3436 | + "items": { |
| 3437 | + "type": "array", |
| 3438 | + "items": { |
| 3439 | + "$ref": "#/components/schemas/SubscriberHistory" |
| 3440 | + } |
| 3441 | + }, |
| 3442 | + "pagination": { |
| 3443 | + "$ref": "#/components/schemas/CursorPagination" |
| 3444 | + } |
| 3445 | + }, |
| 3446 | + "type": "object" |
| 3447 | + } |
| 3448 | + } |
| 3449 | + } |
| 3450 | + }, |
| 3451 | + "403": { |
| 3452 | + "description": "Unauthorized", |
| 3453 | + "content": { |
| 3454 | + "application/json": { |
| 3455 | + "schema": { |
| 3456 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 3457 | + } |
| 3458 | + } |
| 3459 | + } |
| 3460 | + }, |
| 3461 | + "404": { |
| 3462 | + "description": "Not Found", |
| 3463 | + "content": { |
| 3464 | + "application/json": { |
| 3465 | + "schema": { |
| 3466 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 3467 | + } |
| 3468 | + } |
| 3469 | + } |
| 3470 | + } |
| 3471 | + } |
| 3472 | + } |
| 3473 | + }, |
3353 | 3474 | "/api/v2/subscribers/confirm": {
|
3354 | 3475 | "get": {
|
3355 | 3476 | "tags": [
|
|
4974 | 5095 | }
|
4975 | 5096 | },
|
4976 | 5097 | "type": "object"
|
| 5098 | + }, |
| 5099 | + "SubscriberHistory": { |
| 5100 | + "properties": { |
| 5101 | + "id": { |
| 5102 | + "type": "integer", |
| 5103 | + "example": 1 |
| 5104 | + }, |
| 5105 | + "ip": { |
| 5106 | + "type": "string", |
| 5107 | + "example": "127.0.0.1" |
| 5108 | + }, |
| 5109 | + "created_at": { |
| 5110 | + "type": "string", |
| 5111 | + "format": "date-time", |
| 5112 | + "example": "2022-12-01T10:00:00Z" |
| 5113 | + }, |
| 5114 | + "summery": { |
| 5115 | + "type": "string", |
| 5116 | + "example": "Added by admin" |
| 5117 | + }, |
| 5118 | + "detail": { |
| 5119 | + "type": "string", |
| 5120 | + "example": "Added with add-email on test" |
| 5121 | + }, |
| 5122 | + "system_info": { |
| 5123 | + "type": "string", |
| 5124 | + "example": "HTTP_USER_AGENT = Mozilla/5.0" |
| 5125 | + } |
| 5126 | + }, |
| 5127 | + "type": "object" |
4977 | 5128 | }
|
4978 | 5129 | }
|
4979 | 5130 | },
|
|
0 commit comments