我想測試一個簡單的形式在Gmail重置密碼的用戶測試谷歌API與HTML PUT請求
<form action="https://www.googleapis.com/admin/directory/v1/users"」 method=」put」 if-match="*">
<input name="userKey" type="text" value="" />
<input name="password" type="text" value="" />
<input name="key" type="text" value="" />
<input type="submit" />
</form>
我有這樣的錯誤
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
我怎樣才能做一個PUT請求在HTML?
你可能不能,因爲你需要先認證,這將需要某種編程語言而不是HTML。 – DaImTo