Esempio n. 1
0
 /**
  * Returns a class constant from ServiceInterface defining the authorization method used for the API
  * Header is the sane default.
  *
  * @return int
  */
 protected function getAuthorizationMethod()
 {
     switch ($this->authorizationMethod) {
         case 'querystring':
             return static::AUTHORIZATION_METHOD_QUERY_STRING;
         case 'querystring2':
             return static::AUTHORIZATION_METHOD_QUERY_STRING_V2;
         case 'bearer':
             return static::AUTHORIZATION_METHOD_HEADER_BEARER;
     }
     return parent::getAuthorizationMethod();
 }