@xpoz/xpoz 0.6.5 → 0.6.7
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 +22 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,28 @@ const client = new XpozClient({ apiKey: "your-api-key", serverUrl: "https://xpoz
|
|
|
79
79
|
const client = new XpozClient({ apiKey: "your-api-key", timeoutMs: 600_000 });
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
### Trial Access (No Sign-Up Required)
|
|
83
|
+
|
|
84
|
+
Want to try the SDK before signing up? Use the public trial token as your API key:
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
// Optional: try without your own account
|
|
88
|
+
const client = new XpozClient({
|
|
89
|
+
apiKey: "K3FG1WG8Hzxd5aAXG1fIpcb1KjArTNQMmh1vFpjd4g8ER6ecrSRkRs3LqlnMaNTZoy7MFT9",
|
|
90
|
+
});
|
|
91
|
+
await client.connect();
|
|
92
|
+
|
|
93
|
+
const user = await client.twitter.getUser("elonmusk");
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The trial token is rate-limited and intentionally restricted:
|
|
97
|
+
|
|
98
|
+
- **Read-only data tools only** — search and lookup methods across Twitter, Instagram, Reddit, and TikTok. Account, tracking, and operation-management methods are not available and return an upgrade prompt.
|
|
99
|
+
- **Up to 5 results per call** — every response is capped at 5 items. `responseType` is forced to `ResponseType.FAST`, so pagination (`PAGING`) and CSV export (`CSV`) are unavailable.
|
|
100
|
+
- **Cached data only** — trial reads from the database and does not trigger live on-demand crawling, so the very latest posts may not appear.
|
|
101
|
+
|
|
102
|
+
For full result limits, pagination, CSV export, and live data, [get your own API key](https://xpoz.ai/get-token).
|
|
103
|
+
|
|
82
104
|
## Async Disposal
|
|
83
105
|
|
|
84
106
|
```typescript
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -550,6 +550,7 @@ interface TiktokPost {
|
|
|
550
550
|
hashtags?: string[] | null;
|
|
551
551
|
duration?: number | null;
|
|
552
552
|
videoUrl?: string[] | null;
|
|
553
|
+
transcriptsJson?: Record<string, string> | null;
|
|
553
554
|
createdAt?: string | null;
|
|
554
555
|
createdAtTimestamp?: number | null;
|
|
555
556
|
createdAtDate?: string | null;
|
|
@@ -777,7 +778,7 @@ declare class OperationCancelledError extends XpozError {
|
|
|
777
778
|
constructor(operationId: string);
|
|
778
779
|
}
|
|
779
780
|
|
|
780
|
-
declare const VERSION = "0.6.
|
|
781
|
+
declare const VERSION = "0.6.7";
|
|
781
782
|
|
|
782
783
|
declare function checkForUpdates(): Promise<void>;
|
|
783
784
|
|
package/dist/index.d.ts
CHANGED
|
@@ -550,6 +550,7 @@ interface TiktokPost {
|
|
|
550
550
|
hashtags?: string[] | null;
|
|
551
551
|
duration?: number | null;
|
|
552
552
|
videoUrl?: string[] | null;
|
|
553
|
+
transcriptsJson?: Record<string, string> | null;
|
|
553
554
|
createdAt?: string | null;
|
|
554
555
|
createdAtTimestamp?: number | null;
|
|
555
556
|
createdAtDate?: string | null;
|
|
@@ -777,7 +778,7 @@ declare class OperationCancelledError extends XpozError {
|
|
|
777
778
|
constructor(operationId: string);
|
|
778
779
|
}
|
|
779
780
|
|
|
780
|
-
declare const VERSION = "0.6.
|
|
781
|
+
declare const VERSION = "0.6.7";
|
|
781
782
|
|
|
782
783
|
declare function checkForUpdates(): Promise<void>;
|
|
783
784
|
|
package/dist/index.js
CHANGED