mirror of
https://framagit.org/veretcle/oolatoocs.git
synced 2025-07-20 20:41:17 +02:00
Merge branch 'main' into 'feat_other_medias'
# Conflicts: # Cargo.lock # Cargo.toml # src/lib.rs # src/twitter.rs
This commit is contained in:
@@ -89,6 +89,22 @@ struct UploadMediaCommand {
|
||||
media_id: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct UploadMediaResponse {
|
||||
media_id: u64,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
struct MediaMetadata {
|
||||
media_id: u64,
|
||||
alt_text: MediaMetadataAltText,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
struct MediaMetadataAltText {
|
||||
text: String,
|
||||
}
|
||||
|
||||
/// This function returns the OAuth1 Token object from TwitterConfig
|
||||
fn get_token(config: &TwitterConfig) -> Token {
|
||||
oauth1_request::Token::from_parts(
|
||||
|
Reference in New Issue
Block a user