-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68a275d
commit 074e5c6
Showing
5 changed files
with
53 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package tiktok | ||
|
||
/* | ||
{ | ||
"post_info": { | ||
"title": "this will be a funny #cat video on your @tiktok #fyp", | ||
"privacy_level": "MUTUAL_FOLLOW_FRIENDS", | ||
"disable_duet": false, | ||
"disable_comment": true, | ||
"disable_stitch": false, | ||
"video_cover_timestamp_ms": 1000 | ||
}, | ||
"source_info": { | ||
"source": "PULL_FROM_URL", | ||
"video_url": "https://example.verified.domain.com/example_video.mp4", | ||
} | ||
} | ||
*/ | ||
type PublishVideoRequest struct { | ||
PostInfo PostInfo `json:"post_info"` | ||
SourceInfo SourceInfo `json:"source_info"` | ||
} | ||
|
||
type PostInfo struct { | ||
Title string `json:"title"` | ||
PrivacyLevel string `json:"privacy_level"` | ||
DisableDuet bool `json:"disable_duet"` | ||
DisableComment bool `json:"disable_comment"` | ||
DisableStitch bool `json:"disable_stitch"` | ||
VideoCoverTimestampMS int `json:"video_cover_timestamp_ms"` | ||
} | ||
|
||
type SourceInfo struct { | ||
Source string `json:"source"` | ||
VideoUrl string `json:"video_url"` | ||
} |
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