內容簡介
一個符合 Twitter API 1.1 規範的 WordPress 外掛,為主題開發人員提供從 Twitter 使用者時間線取得物件陣列的功能。
新的 Twitter API 需要您進行 oAuth 認證後才能請求推文列表,這意味著所有現有的 Twitter 外掛都無法使用 AJAX 查詢 JSON API 端點,這個問題在 2013 年 3 月已經爆發。
這對現在大多數正在使用 Twitter 的網站來說是一個嚴重的問題,因此我們建立了一個 PHP 類別來實現所有新的驗證需求並在另一端提供一個推文陣列,供您在 PHP 應用程序或 WordPress 主題中使用。您可以在 GitHub 上找到這個獨立的 StormTwitter 類別。
此外掛程式包裝了我們的 Twitter 類別並提供一個設定畫面,方便地與 WordPress 整合。但是,這個外掛程式絕對是針對開發人員的,您只會得到包含 Twitter 推文物件的 PHP 陣列。您仍然需要設計輸出格式並使其符合新的顯示要求。
此外掛程式不提供側邊欄小工具、短代碼或其他任何形式的易用性。您仍然需要進行格式設計,我們只是為您完成了繁重的工作!
以下是用於以 HTML 輸出推文的範例程式碼:
https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets
鳴謝
使用了 Abraham Williams 的 Twitter OAuth 類別。
關於
版本:2.3.0
由 Storm Consultancy 的 Liam Gladdy 撰寫 - http://www.stormconsultancy.co.uk
Storm Consultancy 是一家位於英國巴斯的網站設計和開發公司。
如果您正在尋找 巴斯的 WordPress 開發人員,請與我們聯繫!
授權協議
版權所有 (c) 2016 Liam Gladdy 和 Storm Consultancy (EU) Ltd,
https://gladdy.uk/, http://www.stormconsultancy.co.uk/
特此免費授權,以任何人取得此軟體及其相關說明文件 (以下簡稱「本軟體」) 之副本,均不受限制,包括但不限於使用、複製、修改、合併、發佈、散佈、許可和/或販售本軟體之副本,以及允許軟體的使用者進行上述行為,但需遵守以下規定:
在本軟體的所有拷貝或實質部分中均應包含上述版權聲明和本許可聲明。
本軟體「按原樣」提供,不附帶任何明示或暗示的保證,包括但不限於適銷性或特定用途的適用性等明示或暗示的保證。作者或版權持有人在任何情況下均不對任何索賠、損害或任何其他責任承擔責任,無論是因契約、侵權或其他原因,因使用本軟體或與本軟體或使用本軟體或其他交易或互動相關而引起或與之有關。
外掛標籤
開發者團隊
② 後台搜尋「oAuth Twitter Feed for Developers」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
A Twitter API 1.1 compliant wordpress plugin that provides an array of a users timeline from Twitter for use by theme developers.
The new Twitter API requires you be oAuth’d before you can request a list of tweets, this means that all of the existing Twitter plugins that simply make an AJAX request for to the JSON API endpoint broke in March 2013.
This wass a major problem for the vast majority of websites that are currently using twitter, so we built a PHP class that implements all the new requirements for authentication and gives you an array of tweets out of the other end, for you to use in your PHP applications, or WordPress theme. You can find the stand-alone StormTwitter class on GitHub
This plugin wraps our Twitter class and provides a settings screen for easy integration into WordPress. However, it’s definitely for developers – you only get a PHP array out of it that contains Twitter tweet objects. You’ll still need to style the output and make it comply with the new display requirements.
This plugin does not provide sidebar widgets, shortcodes or any other form of drop-in functionality. You still need to do the styling, we’ve just done the heavy lifting for you!
Here’s some example code for outputting the tweets in HTML:
https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets
Credits
Uses Abraham Williams’s Twitter OAuth class.
About
Version: 2.3.0
Written by Liam Gladdy of Storm Consultancy – http://www.stormconsultancy.co.uk
Storm Consultancy are a web design and development agency based in Bath, UK.
If you are looking for a Bath WordPress Developer, then get in touch!
License
Copyright (c) 2016 Liam Gladdy and Storm Consultancy (EU) Ltd,
https://gladdy.uk/, http://www.stormconsultancy.co.uk/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
