-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add items and events endpoints, mocks and tests
- Loading branch information
Showing
13 changed files
with
533 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import platform | ||
|
||
import pytest | ||
import csv | ||
|
||
|
||
# Ensure our client isn't being configured with real values! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'alice','1234' | ||
'bob','5678' | ||
'charlie','9012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"inserted": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": "d91c39ed-7c34-4803-a139-34bb4b7c6d53", | ||
"list_id": "246d17c4-79e6-4a25-8b4e-b777a83f6c30", | ||
"data": { | ||
"firstName": "John", | ||
"lastName": "Doe", | ||
"phone": "123456789101" | ||
}, | ||
"created_at": "2023-05-02T21:07:25.790Z", | ||
"updated_at": "2023-05-02T21:07:25.790Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "https://developer.vonage.com/en/api-errors", | ||
"title": "Request data did not validate", | ||
"detail": "Bad Request", | ||
"instance": "8e2dd3f1-1718-48fc-98de-53e1d289d0b4", | ||
"errors": [ | ||
"data must be an object" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"total_items": 2, | ||
"page": 1, | ||
"page_size": 100, | ||
"order": "asc", | ||
"_embedded": { | ||
"items": [ | ||
{ | ||
"id": "04c7498c-bae9-40f9-bdcb-c4eabb0418fe", | ||
"created_at": "2023-05-02T21:04:47.507Z", | ||
"updated_at": "2023-05-02T21:04:47.507Z", | ||
"list_id": "246d17c4-79e6-4a25-8b4e-b777a83f6c30", | ||
"data": { | ||
"test": 0, | ||
"test2": 1 | ||
} | ||
}, | ||
{ | ||
"id": "d91c39ed-7c34-4803-a139-34bb4b7c6d53", | ||
"created_at": "2023-05-02T21:07:25.790Z", | ||
"updated_at": "2023-05-02T21:07:25.790Z", | ||
"list_id": "246d17c4-79e6-4a25-8b4e-b777a83f6c30", | ||
"data": { | ||
"phone": "123456789101", | ||
"lastName": "Doe", | ||
"firstName": "John" | ||
} | ||
} | ||
] | ||
}, | ||
"total_pages": 1, | ||
"_links": { | ||
"first": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/lists/246d17c4-79e6-4a25-8b4e-b777a83f6c30/items?page_size=100&order=asc&page=1" | ||
}, | ||
"self": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/lists/246d17c4-79e6-4a25-8b4e-b777a83f6c30/items?page_size=100&order=asc&page=1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"total_items": 1, | ||
"page": 1, | ||
"page_size": 100, | ||
"total_pages": 1, | ||
"_links": { | ||
"self": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/events?page_size=100&page=1" | ||
}, | ||
"prev": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/events?page_size=100&page=1" | ||
}, | ||
"next": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/events?page_size=100&page=1" | ||
}, | ||
"first": { | ||
"href": "https://api-eu.vonage.com/v0.1/bulk/events?page_size=100&page=1" | ||
} | ||
}, | ||
"_embedded": { | ||
"events": [ | ||
{ | ||
"occurred_at": "2022-08-07T13:18:21.970Z", | ||
"type": "action-call-succeeded", | ||
"id": "e8e1eb4d-61e0-4099-8fa7-c96f1c0764ba", | ||
"job_id": "c68e871a-c239-474d-a905-7b95f4563b7e", | ||
"src_ctx": "et-e4ab4b75-9e7c-4f26-9328-394a5b842648", | ||
"action_id": "26c5bbe2-113e-4201-bd93-f69e0a03d17f", | ||
"data": { | ||
"url": "https://postman-echo.com/post", | ||
"args": {}, | ||
"data": { | ||
"from": "" | ||
}, | ||
"form": {}, | ||
"json": { | ||
"from": "" | ||
}, | ||
"files": {}, | ||
"headers": { | ||
"host": "postman-echo.com", | ||
"user-agent": "got (https://github.com/sindresorhus/got)", | ||
"content-type": "application/json", | ||
"content-length": "11", | ||
"accept-encoding": "gzip, deflate, br", | ||
"x-amzn-trace-id": "Root=1-62efbb9e-53636b7b794accb87a3d662f", | ||
"x-forwarded-port": "443", | ||
"x-nexmo-trace-id": "8a6fed94-7296-4a39-9c52-348f12b4d61a", | ||
"x-forwarded-proto": "https" | ||
} | ||
}, | ||
"run_id": "7d0d4e5f-6453-4c63-87cf-f95b04377324", | ||
"recipient_id": "14806904549" | ||
}, | ||
{ | ||
"occurred_at": "2022-08-07T13:18:20.289Z", | ||
"type": "recipient-response", | ||
"id": "8c8e9894-81be-4f6e-88d4-046b6c70ff8c", | ||
"job_id": "c68e871a-c239-474d-a905-7b95f4563b7e", | ||
"src_ctx": "et-e4ab4b75-9e7c-4f26-9328-394a5b842648", | ||
"data": { | ||
"from": "441632960411", | ||
"text": "hello there" | ||
}, | ||
"run_id": "7d0d4e5f-6453-4c63-87cf-f95b04377324", | ||
"recipient_id": "441632960758" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"favourite_number","least_favourite_number" | ||
0,1 | ||
1,0 | ||
0,0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": "d91c39ed-7c34-4803-a139-34bb4b7c6d53", | ||
"created_at": "2023-05-02T21:07:25.790Z", | ||
"updated_at": "2023-05-03T19:50:33.207Z", | ||
"list_id": "246d17c4-79e6-4a25-8b4e-b777a83f6c30", | ||
"data": { | ||
"first_name": "John", | ||
"last_name": "Doe", | ||
"phone": "447007000000" | ||
} | ||
} |
Oops, something went wrong.