File "Oauth.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/twilio/sdk/src/Twilio/Rest/Oauth.php
File size: 2.09 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Twilio\Rest;

use Twilio\Rest\Oauth\V1;

class Oauth extends OauthBase {
    /**
     * @deprecated Use v1->oauth instead.
     */
    protected function getOauth(): \Twilio\Rest\Oauth\V1\OauthList {
        echo "oauth is deprecated. Use v1->oauth instead.";
        return $this->v1->oauth;
    }

    /**
     * @deprecated Use v1->oauth() instead.
     */
    protected function contextOauth(): \Twilio\Rest\Oauth\V1\OauthContext {
        echo "oauth() is deprecated. Use v1->oauth() instead.";
        return $this->v1->oauth();
    }

    /**
     * @deprecated Use v1->deviceCode instead.
     */
    protected function getDeviceCode(): \Twilio\Rest\Oauth\V1\DeviceCodeList {
        echo "deviceCode is deprecated. Use v1->deviceCode instead.";
        return $this->v1->deviceCode;
    }

    /**
     * @deprecated Use v1->openidDiscovery instead.
     */
    protected function getOpenidDiscovery(): \Twilio\Rest\Oauth\V1\OpenidDiscoveryList {
        echo "openidDiscovery is deprecated. Use v1->openidDiscovery instead.";
        return $this->v1->openidDiscovery;
    }

    /**
     * @deprecated Use v1->openidDiscovery() instead.
     */
    protected function contextOpenidDiscovery(): \Twilio\Rest\Oauth\V1\OpenidDiscoveryContext {
        echo "openidDiscovery() is deprecated. Use v1->openidDiscovery() instead.";
        return $this->v1->openidDiscovery();
    }

    /**
     * @deprecated Use v1->token instead.
     */
    protected function getToken(): \Twilio\Rest\Oauth\V1\TokenList {
        echo "token is deprecated. Use v1->token instead.";
        return $this->v1->token;
    }

    /**
     * @deprecated Use v1->userInfo instead.
     */
    protected function getUserInfo(): \Twilio\Rest\Oauth\V1\UserInfoList {
        echo "userInfo is deprecated. Use v1->userInfo instead.";
        return $this->v1->userInfo;
    }

    /**
     * @deprecated Use v1->userInfo() instead.
     */
    protected function contextUserInfo(): \Twilio\Rest\Oauth\V1\UserInfoContext {
        echo "userInfo() is deprecated. Use v1->userInfo() instead.";
        return $this->v1->userInfo();
    }
}