X4Delphi
1.0.0
親愛的德爾菲社區,
我們的任務是增強我們的開源X4Delphi組件並需要您的幫助!要將我們的組件提升到一個新的水平,我們需要基本訪問Twitter API的發展目的。
您的支持對我們至關重要!
您如何提供幫助:
感謝您支持X4Delphi的增長和改進!
| 贊助 |
|---|
| 天氣展示 |
電報組:https://t.me/x4delphi

這是用於與X(Twitter)API交互的Delphi組件。它提供了一組功能來執行各種動作。
要在Delphi項目中使用此組件,請按照以下步驟:
Twitter.dproj文件。Twitter.bpl 。此步驟可能涉及右鍵單擊項目文件,然後選擇“編譯”,然後選擇“安裝”。 | 過程 /功能 | 描述 | 示例用法 |
|---|---|---|
| createtweet | 此過程使您可以在Twitter上創建一條推文。只需提供您要發推文的文本,然後通過包含有關Tweet的相關信息的對事件進行響應。 | Twitter1.CreateTweet('Hello, Twitter!'); |
| 刪除表 | 使用此功能,您可以通過提供其ID(AID)從Twitter刪除一條推文。它返回布爾值,以表明刪除操作的成功或失敗。 | Resp := Twitter1.DeleteTweet(TweetId); |
| CreatetWeetWithContent | 此過程使您能夠使用文本和媒體內容(例如圖像或視頻)創建一條推文。 | Twitter1.CreateTweetWithContent('AText','Images_videos_path'); |
| 登入 | 此過程使您可以基於Oauth的Twitter使用登錄 | Twitter1.SignIn; |
http:// localhost:3000/auth/twitter/callback
您需要創建一個開發人員帳戶:
此過程使您可以在Twitter上創建一條推文。
Twitter1.CreateTweet( ' Hello, Twitter! ' );事件:Ontweetsent
procedure TForm1.Twitter1TweetSent (ATweetId, ATweet: string);
begin
// Write your code here.....
end ;使用此功能,您可以通過提供其ID(AID)從Twitter刪除一條推文。
var Resp := Twitter1.DeleteTweet(ATweetId);此過程使您能夠使用文本和媒體內容(例如圖像或視頻)創建一條推文。
Twitter1.CreateTweetWithContent( ' AText ' , ' Images_videos_path ' );事件:OnTweetSentWithContent
procedure TForm1.Twitter1TweetSentWithContent (ATweetMediaId: string);
begin
// Write your code here.....
end ;使用Twitter登錄。
Twitter1.SignIn;事件:攻擊性
procedure TForm1.Twitter1Authenticated (AIsAuth: Boolean);
begin
// Write your code here.....
end ;該庫是根據麻省理工學院許可證發布的。
隨時貢獻,打開問題或提供反饋!