PHP Class Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

Exibir arquivo Open project: rubenwouters/crm-launcher Class Usage Examples

Protected Properties

Property Type Description
$config Rubenwouters\CrmLauncher\Models\Configuration

Public Methods

Method Description
__construct ( Configuration $config )
answerPost ( string $answer, integer $messageId ) : array | Illuminate\View\View Answer to Facebook post
answerPrivate ( object $conversation, string $answer ) : array | Illuminate\View\View Answer private Facebook message
deleteFbPost ( object $post ) : Illuminate\View\View Deletes post
fetchComments ( datetime $newest, object $message ) : array | Illuminate\View\View Fetch comments on post
fetchFbStats ( object $post ) : array | Illuminate\View\View Fetch Facebook posts
fetchInnerComments ( datetime $newest, integer $postId ) : array | Illuminate\View\View Fetch inner comments
fetchLikes ( ) : array | Illuminate\View\View Get Facebook page likes
fetchPosts ( datetime $newest ) : array | Illuminate\View\View Fetch posts from Facebook
fetchPrivateConversations ( ) : array | Illuminate\View\View Fetches all private conversations from Facebook
fetchPrivateMessages ( object $conversation ) : array | Illuminate\View\View Fetch all private messages
newestConversationId ( ) : integer | boolean | Illuminate\View\View Get newest conversation id
newestPostId ( ) : integer | boolean | Illuminate\View\View Get newest post ID (Facebook)
publishPost ( string $post ) : array | Illuminate\View\View Publish post

Method Details

__construct() public method

public __construct ( Configuration $config )
$config Rubenwouters\CrmLauncher\Models\Configuration

answerPost() public method

Answer to Facebook post
public answerPost ( string $answer, integer $messageId ) : array | Illuminate\View\View
$answer string
$messageId integer
return array | Illuminate\View\View

answerPrivate() public method

Answer private Facebook message
public answerPrivate ( object $conversation, string $answer ) : array | Illuminate\View\View
$conversation object
$answer string
return array | Illuminate\View\View

deleteFbPost() public method

Deletes post
public deleteFbPost ( object $post ) : Illuminate\View\View
$post object
return Illuminate\View\View

fetchComments() public method

Fetch comments on post
public fetchComments ( datetime $newest, object $message ) : array | Illuminate\View\View
$newest datetime
$message object
return array | Illuminate\View\View

fetchFbStats() public method

Fetch Facebook posts
public fetchFbStats ( object $post ) : array | Illuminate\View\View
$post object
return array | Illuminate\View\View

fetchInnerComments() public method

Fetch inner comments
public fetchInnerComments ( datetime $newest, integer $postId ) : array | Illuminate\View\View
$newest datetime
$postId integer
return array | Illuminate\View\View

fetchLikes() public method

Get Facebook page likes
public fetchLikes ( ) : array | Illuminate\View\View
return array | Illuminate\View\View

fetchPosts() public method

Fetch posts from Facebook
public fetchPosts ( datetime $newest ) : array | Illuminate\View\View
$newest datetime
return array | Illuminate\View\View

fetchPrivateConversations() public method

Fetches all private conversations from Facebook
public fetchPrivateConversations ( ) : array | Illuminate\View\View
return array | Illuminate\View\View

fetchPrivateMessages() public method

Fetch all private messages
public fetchPrivateMessages ( object $conversation ) : array | Illuminate\View\View
$conversation object
return array | Illuminate\View\View

newestConversationId() public method

Get newest conversation id
public newestConversationId ( ) : integer | boolean | Illuminate\View\View
return integer | boolean | Illuminate\View\View

newestPostId() public method

Get newest post ID (Facebook)
public newestPostId ( ) : integer | boolean | Illuminate\View\View
return integer | boolean | Illuminate\View\View

publishPost() public method

Publish post
public publishPost ( string $post ) : array | Illuminate\View\View
$post string
return array | Illuminate\View\View

Property Details

$config protected_oe property

protected Configuration,Rubenwouters\CrmLauncher\Models $config
return Rubenwouters\CrmLauncher\Models\Configuration