Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReplaySetting enum not support "verified" value #76

Open
luafanti opened this issue Jan 31, 2024 · 0 comments
Open

ReplaySetting enum not support "verified" value #76

luafanti opened this issue Jan 31, 2024 · 0 comments

Comments

@luafanti
Copy link

luafanti commented Jan 31, 2024

I got an error Unexpected value verified when I tried to get Tweets because ReplySettings isn't support value "reply_settings": "verified"

This kind of reply_settings I received using below request to Twitter API

https://api.twitter.com/2/tweets?media.fields=alt_text,duration_ms,height,media_key,preview_image_url,public_metrics,type,url,variants,width&expansions=author_id,attachments.media_keys,geo.place_id&tweet.fields=attachments,author_id,card_uri,context_annotations,conversation_id,created_at,edit_controls,edit_history_tweet_ids,entities,geo,id,in_reply_to_user_id,lang,note_tweet,possibly_sensitive,public_metrics,referenced_tweets,reply_settings,source,text,withheld&user.fields=created_at,description,id,location,most_recent_tweet_id,name,pinned_tweet_id,profile_image_url,protected,public_metrics,receives_your_dm,subscription_type,url,username,verified,verified_type&ids=1752384295568851027

Below response payload

{
    "data": [
        {
            "id": "1752384295568851027",
            "conversation_id": "1752384295568851027",
            "author_id": "3220664394",
            "possibly_sensitive": false,
            "created_at": "2024-01-30T17:32:28.000Z",
            "lang": "en",
            "entities": {
                "mentions": [
                    {
                        "start": 169,
                        "end": 181,
                        "username": "AirbusSpace",
                        "id": "44324383"
                    }
                ],
                "annotations": [
                    {
                        "start": 0,
                        "end": 5,
                        "probability": 0.9646,
                        "type": "Organization",
                        "normalized_text": "Airbus"
                    },
                    {
                        "start": 29,
                        "end": 43,
                        "probability": 0.4938,
                        "type": "Other",
                        "normalized_text": "Eutelsat OneWeb"
                    },
                    {
                        "start": 150,
                        "end": 155,
                        "probability": 0.8508,
                        "type": "Organization",
                        "normalized_text": "Airbus"
                    }
                ],
                "urls": [
                    {
                        "start": 125,
                        "end": 148,
                        "url": "https://t.co/N54G8o791s",
                        "expanded_url": "https://bit.ly/48QZtaN",
                        "display_url": "bit.ly/48QZtaN",
                        "images": [
                            {
                                "url": "https://pbs.twimg.com/news_img/1752384308810268672/JDKjOTxF?format=jpg&name=orig",
                                "width": 1024,
                                "height": 512
                            },
                            {
                                "url": "https://pbs.twimg.com/news_img/1752384308810268672/JDKjOTxF?format=jpg&name=150x150",
                                "width": 150,
                                "height": 150
                            }
                        ],
                        "status": 200,
                        "title": "Airbus Announces Purchase of Eutelsat OneWeb’s Stake in Satellite Constellation Manufacturing Joint Venture",
                        "description": "Washington D.C., USA, 29 January 2024 – Airbus U.S. Space & Defense, Inc. announced completion of a deal with Eutelsat OneWeb to purchase its 50% share of the Airbus OneWeb Satellites (AOS) joint venture.Airbus is now the sole owner of AOS and the satellite manufacturing facility in Merritt Island, Florida.The new structure is expected to provide maximum efficiency and increased competitiveness for commercial, institutional and national security space customers.“This agreement furthers our position as a market leader in the small satellite constellation business, building on our successful partnership with OneWeb,” said Robert Geckle, Chairman and CEO, Airbus U.S. Space & Defense, Inc. “We will continue mass producing small satellites for our customers and are excited for what the future holds for us on Florida’s Space Coast as we move forward,” he added.Airbus U.S. Space & Defense recently retooled the Merritt Island factory to accommodate the Arrow450 production line and is starting ",
                        "unwound_url": "https://airbus-ds-gs.com/2024/01/29/airbus-announces-purchase-of-eutelsat-onewebs-stake-in-satellite-constellation-manufacturing-joint-venture/"
                    }
                ],
                "hashtags": [
                    {
                        "start": 149,
                        "end": 156,
                        "tag": "Airbus"
                    },
                    {
                        "start": 157,
                        "end": 168,
                        "tag": "Satellites"
                    }
                ]
            },
            "edit_controls": {
                "edits_remaining": 5,
                "is_edit_eligible": true,
                "editable_until": "2024-01-30T18:32:28.000Z"
            },
            "public_metrics": {
                "retweet_count": 0,
                "reply_count": 0,
                "like_count": 0,
                "quote_count": 0,
                "bookmark_count": 0,
                "impression_count": 22
            },
            "reply_settings": "verified",
            "edit_history_tweet_ids": [
                "1752384295568851027"
            ],
            "text": "Airbus Announces Purchase of Eutelsat OneWeb’s Stake in Satellite Constellation Manufacturing Joint Venture. Read more here: https://t.co/N54G8o791s\n#Airbus #Satellites @AirbusSpace",
            "card_uri": "https://t.co/N54G8o791s"
        }
    ],
    "includes": {
        "users": [
            {
                "description": "#AirbusDSGS is an industry leader in #satcom & networking systems. This is the official account of Airbus DS Government Solutions, Inc.",
                "verified_type": "blue",
                "name": "Airbus DS GS",
                "public_metrics": {
                    "followers_count": 697,
                    "following_count": 490,
                    "tweet_count": 353,
                    "listed_count": 17,
                    "like_count": 161
                },
                "subscription_type": "None",
                "most_recent_tweet_id": "1752384295568851027",
                "receives_your_dm": false,
                "location": "Plano, TX",
                "protected": false,
                "verified": true,
                "created_at": "2015-05-19T20:12:05.000Z",
                "id": "3220664394",
                "profile_image_url": "https://pbs.twimg.com/profile_images/821232055929294848/2927oAMo_normal.jpg",
                "url": "https://t.co/r2uPduoD3w",
                "username": "airbusdsgs"
            }
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant