@@ -3,27 +3,66 @@ import Foundation
3
3
public class ParselyMetadata {
4
4
var canonical_url : String ?
5
5
var pub_date : Date ?
6
+ var save_date : Date ?
6
7
var title : String ?
7
8
var authors : Array < String > ?
8
9
var image_url : String ?
9
10
var section : String ?
10
11
var tags : Array < String > ?
11
12
var duration : TimeInterval ?
12
13
var page_type : String ?
14
+ var urls : String ?
15
+ var post_id : String ?
16
+ var pub_date_tmsp : Date ?
17
+ var custom_metadata : String ?
18
+ var save_date_tmsp : Date ?
19
+ var thumb_url : String ?
20
+ var full_content_word_count : Int ?
21
+ var share_urls : Array < String > ?
22
+ var data_source : String ?
23
+ var canonical_hash : String ?
24
+ var canonical_hash64 : String ?
25
+ var video_platform : String ?
26
+ var language : String ?
27
+ var full_content : String ?
28
+ var full_content_sha512 : String ?
29
+ var network_id_str : String ?
30
+ var network_canonical : String ?
31
+ var content_enrichments : Dictionary < String , Any > ?
32
+
13
33
14
34
/**
15
35
A class to manage and re-use metadata. Metadata contained in an instance of this
16
36
class will conform to Parsely's schema.
17
37
18
38
- Parameter canonical_url: A post's canonical url. For videos, it is overridden with the vId and thus can be omitted.
19
39
- Parameter pub_date: Date this piece of content was published.
40
+ - Parameter save_date: Date this piece of content was saved.
20
41
- Parameter title: Title of the content.
21
42
- Parameter authors: Up to 10 authors are accepted.
22
43
- Parameter image_url: Where the main image for this post is hosted.
23
44
- Parameter section: Same as section for website integration.
24
45
- Parameter tags: Up to 20 tags on an event are allowed.
25
46
- Parameter duration: Durations passed explicitly to trackVideoStart take precedence over any in metadata.
26
47
- Parameter page_type: The type of page being tracked
48
+ - Parameter urls: A list of urls associated with this post.
49
+ - Parameter post_id: A unique identifier for this post.
50
+ - Parameter pub_date_tmsp: Date this piece of content was published.
51
+ - Parameter custom_metadata: A string of custom metadata.
52
+ - Parameter save_date_tmsp: Date this piece of content was saved.
53
+ - Parameter thumb_url: Where the thumbnail image for this post is hosted.
54
+ - Parameter full_content_word_count: The number of words in the full content.
55
+ - Parameter share_urls: A list of urls associated with this post.
56
+ - Parameter data_source: The data source for this post.
57
+ - Parameter canonical_hash: The canonical hash for this post.
58
+ - Parameter canonical_hash64: The canonical hash for this post.
59
+ - Parameter video_platform: The video platform for this post.
60
+ - Parameter language: The language for this post.
61
+ - Parameter full_content: The full content for this post.
62
+ - Parameter full_content_sha512: The full content sha512 for this post.
63
+ - Parameter network_id_str: The network id for this post.
64
+ - Parameter network_canonical: The network canonical for this post.
65
+ - Parameter content_enrichments: The content enrichments for this post.
27
66
*/
28
67
public init ( canonical_url: String ? = nil ,
29
68
pub_date: Date ? = nil ,
0 commit comments