first commit

This commit is contained in:
2020-01-15 13:35:30 +01:00
commit c9cd268366
15 changed files with 1884 additions and 0 deletions

64
fb_dataft.go Normal file
View File

@@ -0,0 +1,64 @@
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// dataFT, err := UnmarshalDataFT(bytes)
// bytes, err = dataFT.Marshal()
package main
import "encoding/json"
func UnmarshalDataFT(data []byte) (DataFT, error) {
var r DataFT
err := json.Unmarshal(data, &r)
return r, err
}
func (r *DataFT) Marshal() ([]byte, error) {
return json.Marshal(r)
}
type DataFT struct {
MFStoryKey string `json:"mf_story_key"`
TopLevelPostID string `json:"top_level_post_id"`
TlObjid string `json:"tl_objid"`
ContentOwnerIDNew string `json:"content_owner_id_new"`
ThrowbackStoryFbid string `json:"throwback_story_fbid"`
PageID string `json:"page_id"`
PhotoID string `json:"photo_id"`
StoryLocation int64 `json:"story_location"`
StoryAttachmentStyle string `json:"story_attachment_style"`
PageInsights map[string]PageInsight `json:"page_insights"`
Tn string `json:"tn"`
}
type PageInsight struct {
PageID string `json:"page_id"`
ActorID string `json:"actor_id"`
Dm Dm `json:"dm"`
Psn string `json:"psn"`
PostContext PostContext `json:"post_context"`
Role int64 `json:"role"`
Sl int64 `json:"sl"`
Targets []Target `json:"targets"`
}
type Dm struct {
IsShare int64 `json:"isShare"`
OriginalPostOwnerID int64 `json:"originalPostOwnerID"`
}
type PostContext struct {
ObjectFbtype int64 `json:"object_fbtype"`
PublishTime int64 `json:"publish_time"`
StoryName string `json:"story_name"`
StoryFbid []string `json:"story_fbid"`
}
type Target struct {
ActorID string `json:"actor_id"`
PageID string `json:"page_id"`
PostID string `json:"post_id"`
Role int64 `json:"role"`
ShareID int64 `json:"share_id"`
}