Skip to content

Commit

Permalink
Merge pull request #60 from a-abuzakham/master
Browse files Browse the repository at this point in the history
include media and userinfo and other tweet fields
  • Loading branch information
noweh authored Dec 9, 2024
2 parents b2f6e4a + 25e004e commit 60be5fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Timeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ protected function constructEndpoint(): string {
$this->query_string['pagination_token'] = $this->next_page_token;
$endpoint .= '?' . http_build_query($this->query_string);
}
$endpoint .= '?tweet.fields=article,attachments,author_id,card_uri,community_id,conversation_id,created_at,display_text_range,edit_controls,edit_history_tweet_ids,entities,id,lang,media_metadata,note_tweet,possibly_sensitive,public_metrics,reply_settings,scopes,source,text,withheld&expansions=article.cover_media,article.media_entities,attachments.media_keys,attachments.media_source_tweet,author_id,edit_history_tweet_ids&media.fields=alt_text,duration_ms,height,media_key,preview_image_url,public_metrics,type,url,variants,width&user.fields=affiliation,connection_status,created_at,description,entities,id,location,most_recent_tweet_id,name,pinned_tweet_id,profile_banner_url,profile_image_url,protected,public_metrics,receives_your_dm,subscription_type,url,username,verified,verified_type,withheld&place.fields=contained_within,country,country_code,full_name,id,name,place_type';
return $endpoint;
}
}

0 comments on commit 60be5fe

Please sign in to comment.