PHP Class App\Http\Controllers\TwitterController

Inheritance: extends Controller
Afficher le fichier Open project: unicodeveloper/laravel-hackathon-starter Class Usage Examples

Protected Properties

Свойство Type Description
$searchItem string Item to be searched for, combing through twitter's massive data

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
getLatestTweets ( ) : Collection Get the latest tweets on a user timeline
searchForTweets ( string $item ) : Collection Search for tweets based on a search query

Method Details

__construct() public méthode

Initialize the Controller with necessary arguments
public __construct ( )

getPage() public méthode

Return all tweets to the Twitter API dashboard
public getPage ( ) : mixed
Résultat mixed

sendTweet() public méthode

Post a tweet to the timeline
public sendTweet ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
Résultat string

Property Details

$searchItem protected_oe property

Item to be searched for, combing through twitter's massive data
protected string $searchItem
Résultat string