public static function put($url, $data, $headers = array(), $auth = false) { $url = self::$config['apiURLPrefix'] . $url; if (self::$apiVersion) { $headers[] = "Zotero-API-Version: " . self::$apiVersion; } if (!$auth && self::$apiKey) { $headers[] = "Authorization: Bearer " . self::$apiKey; } $response = HTTP::put($url, $data, $headers, $auth); return $response; }
public static function put($url, $data, $headers = array(), $auth = false) { self::loadConfig(); $url = self::$config['apiURLPrefix'] . $url; $response = HTTP::put($url, $data, $headers, $auth); return $response; }