code: protected function buildOpts($method)
      {
          $opts = array(
              'http' =>
                  array(
                      'method'        => $method,
                      'header'        => sprintf("Content-type: %s\n", $this->contentType) .
                          'Authorization: Bearer ' . $this->accessToken,
                      'ignore_errors' => true,
                  )
          );
          return $opts;
      }
docs: @param string $method
  
  @return array