tiktok_rust 0.0.9

A Rust library for interacting with the TikTok API, enabling direct posting of content and querying creator information.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct TokenResponse {
    pub access_token: String,
    pub expires_in: i64,
    pub token_type: String,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct TokenErrorResponse {
    pub error: String,
    pub error_description: String,
    pub log_id: String,
}