src/controllers/DefaultController.php
public function actionLoadBucketData()
    {
        $this->requirePostRequest();
        $this->requireAcceptsJson();

        $request = Craft::$app->getRequest();
        $keyId = Craft::parseEnv($request->getRequiredBodyParam('keyId'));
        $secret = Craft::parseEnv($request->getRequiredBodyParam('secret'));

        try {
            return $this->asJson(Volume::loadBucketList($keyId, $secret));
        } catch (\Throwable $e) {
            return $this->asErrorJson($e->getMessage());
        }
    }
public function actionLoadBucketData()
    {
        $this->requirePostRequest();
        $this->requireAcceptsJson();

        $request = Craft::$app->getRequest();
        $keyId = Craft::parseEnv($request->getRequiredBodyParam('keyId'));
        $secret = Craft::parseEnv($request->getRequiredBodyParam('secret'));

        try {
            return $this->asJson(Volume::loadBucketList($keyId, $secret));
        } catch (\Throwable $e) {
            return $this->asErrorJson($e->getMessage());
        }
    }
public function actionLoadBucketData ( ) { $ this -> requirePostRequest ( ) ; $ this -> requireAcceptsJson ( ) ; $ request = Craft :: $ app -> getRequest ( ) ; $ keyId = Craft :: parseEnv ( $ request -> getRequiredBodyParam ( 'keyId' ) ) ; $ secret = Craft :: parseEnv ( $ request -> getRequiredBodyParam ( 'secret' ) ) ; try { return $ this -> asJson ( Volume :: loadBucketList ( $ keyId , $ secret ) ) ; } catch ( \ Throwable $ e ) { return $ this -> asErrorJson ( $ e -> getMessage ( ) ) ; } }
Load bucket data for specified credentials.

@return Response
Load bucket data for specified credentials .