Revert "Session-based auth for bookmarklet, part 1"

This reverts commit 62e4fcdef0.
This commit is contained in:
Simon Kornblith 2012-03-18 17:26:01 -04:00
parent 62e4fcdef0
commit ed5d1aaee8

View file

@ -72,7 +72,7 @@ Zotero.Translate.ItemSaver.prototype = {
newItems.push(Zotero.Utilities.itemToServerJSON(items[i])); newItems.push(Zotero.Utilities.itemToServerJSON(items[i]));
} }
var url = 'users/%%USERID%%/items'; var url = 'users/%%USERID%%/items?key=%%APIKEY%%';
var payload = JSON.stringify({"items":newItems}, null, "\t") var payload = JSON.stringify({"items":newItems}, null, "\t")
Zotero.OAuth.doAuthenticatedPost(url, payload, function(status) { Zotero.OAuth.doAuthenticatedPost(url, payload, function(status) {