original_string: protected function getSuccessData($attributes = null)
      {
          $rawData = $this->decodeResponseJson()['data'];
  
          if (is_null($attributes)) {
              return $rawData;
          } elseif (is_string($attributes)) {
              return array_get($rawData, $attributes);
          }
  
          $data = [];
  
          foreach ($attributes as $attribute) {
              $data[] = array_get($rawData, $attribute);
          }
  
          return $data;
      }
code: protected function getSuccessData($attributes = null)
      {
          $rawData = $this->decodeResponseJson()['data'];
  
          if (is_null($attributes)) {
              return $rawData;
          } elseif (is_string($attributes)) {
              return array_get($rawData, $attributes);
          }
  
          $data = [];
  
          foreach ($attributes as $attribute) {
              $data[] = array_get($rawData, $attribute);
          }
  
          return $data;
      }
code_tokens: protected function getSuccessData ( $ attributes = null ) { $ rawData = $ this -> decodeResponseJson ( ) [ 'data' ] ; if ( is_null ( $ attributes ) ) { return $ rawData ; } elseif ( is_string ( $ attributes ) ) { return array_get ( $ rawData , $ attributes ) ; } $ data = [ ] ; foreach ( $ attributes as $ attribute ) { $ data [ ] = array_get ( $ rawData , $ attribute ) ; } return $ data ; }
docstring: Decodes JSON response and returns the data.
  
  @param  string|array|null $attributes
  @return array
docstring_tokens: Decodes JSON response and returns the data .