Instagram\Instagram::getCurrentUserAccount PHP Method

getCurrentUserAccount() public method

Get Current User Account
public getCurrentUserAccount ( ) : CurrentUserAccountResponse
return Instagram\API\Response\CurrentUserAccountResponse
    public function getCurrentUserAccount()
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call getCurrentUserAccount().");
        }
        $request = new CurrentUserAccountRequest($this);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to getCurrentUserAccount: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }