api() public method
Performs request to the OAuth API.
| public array api ( $apiSubUrl, $method = 'GET', array $params = [], array $headers = [] ) | ||
|---|---|---|
| $apiSubUrl | string |
API sub URL, which will be append to $apiBaseUrl, or absolute API URL. |
| $method | string |
Request method. |
| $params | array |
Request parameters. |
| $headers | array |
Additional request headers. |
| return | array |
API response |
| throws | yii\base\Exception |
on failure. |
Please login to continue.