original_string: public static function add_screenshot($hubcourseid, \stored_file $file, $screenshotnumber) {
          $curl = new \curl();
          $params = array();
          $params['filetype'] = self::HUB_SCREENSHOT_FILE_TYPE;
          $params['file'] = $file;
          $params['courseid'] = $hubcourseid;
          $params['filename'] = $file->get_filename();
          $params['screenshotnumber'] = $screenshotnumber;
          $params['token'] = registration::get_token(MUST_EXIST);
          $curl->post(HUB_MOODLEORGHUBURL . "/local/hub/webservice/upload.php", $params);
      }
code: public static function add_screenshot($hubcourseid, \stored_file $file, $screenshotnumber) {
          $curl = new \curl();
          $params = array();
          $params['filetype'] = self::HUB_SCREENSHOT_FILE_TYPE;
          $params['file'] = $file;
          $params['courseid'] = $hubcourseid;
          $params['filename'] = $file->get_filename();
          $params['screenshotnumber'] = $screenshotnumber;
          $params['token'] = registration::get_token(MUST_EXIST);
          $curl->post(HUB_MOODLEORGHUBURL . "/local/hub/webservice/upload.php", $params);
      }
code_tokens: public static function add_screenshot ( $ hubcourseid , \ stored_file $ file , $ screenshotnumber ) { $ curl = new \ curl ( ) ; $ params = array ( ) ; $ params [ 'filetype' ] = self :: HUB_SCREENSHOT_FILE_TYPE ; $ params [ 'file' ] = $ file ; $ params [ 'courseid' ] = $ hubcourseid ; $ params [ 'filename' ] = $ file -> get_filename ( ) ; $ params [ 'screenshotnumber' ] = $ screenshotnumber ; $ params [ 'token' ] = registration :: get_token ( MUST_EXIST ) ; $ curl -> post ( HUB_MOODLEORGHUBURL . "/local/hub/webservice/upload.php" , $ params ) ; }
docstring: Uploads a screenshot for the published course
  
  @param int $hubcourseid id of the published course on moodle.net, it must be published from this site
  @param \stored_file $file
  @param int $screenshotnumber ordinal number of the screenshot
docstring_tokens: Uploads a screenshot for the published course