src/OpenPlatform/AuthorizerAccessToken.php
public function getToken($forceRefresh = false)
    {
        $cached = $this->authorizer->getAccessToken();

        if ($forceRefresh || empty($cached)) {
            return $this->renewAccessToken();
        }

        return $cached;
    }
public function getToken($forceRefresh = false)
    {
        $cached = $this->authorizer->getAccessToken();

        if ($forceRefresh || empty($cached)) {
            return $this->renewAccessToken();
        }

        return $cached;
    }
Get token from WeChat API.

@param bool $forceRefresh

@return string