mirror of
https://framagit.org/veretcle/oolatoocs.git
synced 2025-07-20 12:31:18 +02:00
tamerelol
This commit is contained in:
@@ -89,22 +89,6 @@ struct UploadMediaCommand {
|
|||||||
media_id: String,
|
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
|
/// This function returns the OAuth1 Token object from TwitterConfig
|
||||||
fn get_token(config: &TwitterConfig) -> Token {
|
fn get_token(config: &TwitterConfig) -> Token {
|
||||||
oauth1_request::Token::from_parts(
|
oauth1_request::Token::from_parts(
|
||||||
|
Reference in New Issue
Block a user