71 lines
No EOL
2.2 KiB
PHP
Executable file
71 lines
No EOL
2.2 KiB
PHP
Executable file
<?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();
|
|
}
|
|
} |