ugcinc 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ For complete API documentation, including all endpoints, parameters, and example
|
|
|
52
52
|
### Posts
|
|
53
53
|
- Create video posts
|
|
54
54
|
- Create slideshow posts
|
|
55
|
-
- Get post status (includes
|
|
55
|
+
- Get post status (includes platform URL when complete - TikTok or Instagram)
|
|
56
56
|
- Get posts with filters (by accountIds, postIds, date range)
|
|
57
57
|
- Get post statistics
|
|
58
58
|
|
|
@@ -128,7 +128,9 @@ const response = await client.posts.getPosts({
|
|
|
128
128
|
if (response.ok) {
|
|
129
129
|
response.data.forEach(post => {
|
|
130
130
|
console.log(`Post ${post.id}: ${post.status}`);
|
|
131
|
-
// For complete posts, postUrl will contain the
|
|
131
|
+
// For complete posts, postUrl will contain the platform URL
|
|
132
|
+
// TikTok: https://www.tiktok.com/@username/video/social_id
|
|
133
|
+
// Instagram: https://www.instagram.com/p/social_id/
|
|
132
134
|
if (post.postUrl) {
|
|
133
135
|
console.log(`Watch at: ${post.postUrl}`);
|
|
134
136
|
}
|
|
@@ -145,8 +147,9 @@ const response = await client.posts.getStatus({
|
|
|
145
147
|
if (response.ok) {
|
|
146
148
|
console.log(`Status: ${response.data.status}`);
|
|
147
149
|
// postUrl is available when status is "complete"
|
|
150
|
+
// Format depends on platform (TikTok or Instagram)
|
|
148
151
|
if (response.data.postUrl) {
|
|
149
|
-
console.log(`
|
|
152
|
+
console.log(`Post URL: ${response.data.postUrl}`);
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
```
|