Skip to content

Commit 12c9483

Browse files
author
olivierapivideo
authored
Add new analytics endpoints & livestream complete()
1 parent 388394f commit 12c9483

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d7b342ceb1a4805da9e3d6355384e34c1a99e1300d01cac3ae3218c5738f11f1
1+
ebbb27e19c8b753acb8983ae2eaf4e6a379a7fd9dd85b47ce32b04afd7b71ce8

Sources/OpenISO8601DateFormatter.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public class OpenISO8601DateFormatter: DateFormatter {
3535
setup()
3636
}
3737

38+
override public func string(from date: Date) -> String {
39+
return OpenISO8601DateFormatter.withoutSeconds.string(from: date)
40+
}
41+
3842
override public func date(from string: String) -> Date? {
3943
if let result = super.date(from: string) {
4044
return result

Tests/TestResources/payloads/advancedauthentication/authenticate/responses/400.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type" : "https://docs.api.video/docs/authenticationinvalid_credentials",
2+
"type" : "https://docs.api.video/reference/authentication-invalid-user-credentials",
33
"title" : "The user credentials were incorrect.",
44
"name" : "",
55
"status" : 400
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"status" : 400,
3-
"type" : "https://docs.api.video/docs/authenticationinvalid_credentials",
3+
"type" : "https://docs.api.video/reference/authentication-invalid-user-credentials",
44
"title" : "The user credentials were incorrect.",
55
"name" : ""
66
}

Tests/TestResources/payloads/videos/upload/responses/400.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"type" : "https://docs.api.video/docs/filealreadyuploaded",
2+
"type" : "https://docs.api.video/reference/video-source-already-uploaded",
33
"title" : "The source of the video is already uploaded.",
44
"name" : "file",
55
"status" : 400,
66
"problems" : [ {
7-
"type" : "https://docs.api.video/docs/filealreadyuploaded",
7+
"type" : "https://docs.api.video/reference/video-source-already-uploaded",
88
"title" : "The source of the video is already uploaded.",
99
"name" : "file"
1010
}, {
11-
"type" : "https://docs.api.video/docs/filealreadyuploaded",
11+
"type" : "https://docs.api.video/reference/video-source-already-uploaded",
1212
"title" : "The video xxxx has already been uploaded.",
1313
"name" : "video"
1414
}, {
15-
"type" : "https://docs.api.video/docs/filemissing",
15+
"type" : "https://docs.api.video/reference/uploaded-file-no-file",
1616
"title" : "There is no uploaded file in the request.",
1717
"name" : "file"
1818
}, {
19-
"type" : "https://docs.api.video/docs/multiplefilesuploaded",
19+
"type" : "https://docs.api.video/reference/uploaded-file-multiple-files",
2020
"title" : "There is more than one uploaded file in the request.",
2121
"name" : "file"
2222
} ]

Tests/TestResources/payloads/videos/upload/responses/404.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type" : "https://docs.api.video/docs/resourcenot_found",
2+
"type" : "https://docs.api.video/reference/resource-not-found",
33
"title" : "The requested resource was not found.",
44
"name" : "videoId",
55
"status" : 404

0 commit comments

Comments
 (0)