zendesk/zendesk_api_client_php

View on GitHub
src/Zendesk/API/Resources/Chat/Integrations.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Zendesk\API\Resources\Chat;

use Zendesk\API\Resources\ResourceAbstract;
use Zendesk\API\Traits\Resource\Find;

/**
 * @method Integrations find()
 */
class Integrations extends ResourceAbstract
{
    use Find;

    /**
     * {@inheritdoc}
     */
    protected function setUpRoutes()
    {
        parent::setUpRoutes();

        $this->setRoutes(
            [
                'find' => 'zopim_integration.json',
            ]
        );
    }

    /**
     * Find the ChatAccount integrated to a Zendesk account
     *
     * @return \stdClass | null
     */
    public function find()
    {
        return $this->client->get($this->getRoute(__FUNCTION__));
    }
}