lib/Fabulator/Endomondo/EndomondoApi.php
protected function generateCSRFToken()
    {
        try {
            parent::generateCSRFToken();
        } catch (ClientException $e) {
            // too many request, sleep for a while
            if ($e->getCode() === 429) {
                throw new EndomondoApiException('Too many requests', $e->getCode(), $e);
            }

            throw new EndomondoApiException($e->getMessage(), $e->getCode(), $e);
        }
    }
protected function generateCSRFToken()
    {
        try {
            parent::generateCSRFToken();
        } catch (ClientException $e) {
            // too many request, sleep for a while
            if ($e->getCode() === 429) {
                throw new EndomondoApiException('Too many requests', $e->getCode(), $e);
            }

            throw new EndomondoApiException($e->getMessage(), $e->getCode(), $e);
        }
    }
protected function generateCSRFToken ( ) { try { parent :: generateCSRFToken ( ) ; } catch ( ClientException $ e ) { // too many request, sleep for a while if ( $ e -> getCode ( ) === 429 ) { throw new EndomondoApiException ( 'Too many requests' , $ e -> getCode ( ) , $ e ) ; } throw new EndomondoApiException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Generate csfr token.

@return void
@throws EndomondoApiException When generating fail
Generate csfr token .