PHP 클래스 App\Http\Controllers\TwitterController

상속: extends Controller
파일 보기 프로젝트 열기: unicodeveloper/laravel-hackathon-starter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$searchItem string Item to be searched for, combing through twitter's massive data

공개 메소드들

메소드 설명
__construct ( ) Initialize the Controller with necessary arguments
getPage ( ) : mixed Return all tweets to the Twitter API dashboard
sendTweet ( Illuminate\Http\Request $request ) : string Post a tweet to the timeline

비공개 메소드들

메소드 설명
getLatestTweets ( ) : Collection Get the latest tweets on a user timeline
searchForTweets ( string $item ) : Collection Search for tweets based on a search query

메소드 상세

__construct() 공개 메소드

Initialize the Controller with necessary arguments
public __construct ( )

getPage() 공개 메소드

Return all tweets to the Twitter API dashboard
public getPage ( ) : mixed
리턴 mixed

sendTweet() 공개 메소드

Post a tweet to the timeline
public sendTweet ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
리턴 string

프로퍼티 상세

$searchItem 보호되어 있는 프로퍼티

Item to be searched for, combing through twitter's massive data
protected string $searchItem
리턴 string