seregazhuk\PinterestBot\Api\Providers\Conversations::last PHP Method

last() public method

Get last user conversations.
public last ( ) : array | boolean
return array | boolean
    public function last()
    {
        return $this->execGetRequest([], UrlBuilder::RESOURCE_GET_LAST_CONVERSATIONS);
    }

Usage Example

 public function testLast()
 {
     $lastConversations = array("1" => ["result"]);
     $res = $this->createApiResponse(array('data' => $lastConversations, 'error' => null));
     $this->mock->expects($this->at(1))->method('exec')->willReturn($res);
     $this->mock->expects($this->at(3))->method('exec')->willReturn(null);
     $this->assertEquals($lastConversations, $this->provider->last());
     $this->assertFalse($this->provider->last());
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Conversations::last