Trouble with user feed
Hi,
I was trying to set up an IFTTT recipe so that new references added to my private Zotero library would be exported into my Evernote account. I copied the feed address, which looked like this
https://api.zotero.org/users/<user ID>/items?key=<key ID>
But it's failed, even when I change the access levels (was just trying to give it a shot). Does anyone have an idea of what might be going on? This is the recipe I was using:
https://ifttt.com/recipes/2037-new-zotero-items-sent-to-evernote
Thanks!
I was trying to set up an IFTTT recipe so that new references added to my private Zotero library would be exported into my Evernote account. I copied the feed address, which looked like this
https://api.zotero.org/users/<user ID>/items?key=<key ID>
But it's failed, even when I change the access levels (was just trying to give it a shot). Does anyone have an idea of what might be going on? This is the recipe I was using:
https://ifttt.com/recipes/2037-new-zotero-items-sent-to-evernote
Thanks!
If you go to https://www.zotero.org/settings/keys and click on "Edit Key" for the key you set up for your feed, what exactly are the settings.
Here are the settings when I click on "Edit Key":
Checked all boxes under "Personal library."
Checked "Read/Write" under "Default Group Permissions."
Nothing Checked under "Specific Groups."
The general structure of your api call looks right and the API is working fine for me, so neither of those are the problem.
https://api.zotero.org/groups/4211/items/top?start=0&limit=25
But your RSS reader should definitely pick up items on those pages (they're atom feeds, not RSS, so if your RSS reader only does actual RSS that would be an explanation, but it would also be very odd).
I'd still try and see what happens if you temporary prevent it from automatically opening all feeds for your browser.
https://api.zotero.org/users/810/items/top
but not with
https://api.zotero.org/groups/4211/items/top
?
are you sure about that?
It's weird - even when I make my api public so that it doesn't have the key suffix at the end, the RSS reader won't recognize it (but will recognize the other ones in that format). But regardless of what feed address I actually use in IFTTT, none of them work.
If your RSS reader doesn't recognize the feed from your own library, of course, that does suggest something is wrong with the feed itself.
How about this for testing:
Generate the feed for just one collection with not too many items (must be <150). That should look something like this:
https://api.zotero.org/users/2433/collections/T82QIRI4/items/top?start=0&limit=25&key=<key>
then then replace "start=0&limit=25" with "format=bib" (no quotation marks) so you have
https://api.zotero.org/users/2433/collections/T82QIRI4/items/top?format=bib&key=<key>
and see what happens
That should give you a formatted bibliography and if not a better sense of what's happening
So I switched the library to public, and it accepted it. But then the recipe failed again.
2) With the RSS feed and private API and changing it to "format=bib" for one collection it again said that it couldn't find the feed.
https://api.zotero.org/users/<user id>/collections/I3B7AMJZ/items/top?format=bib&key=W3YYrz8KeM7PcuXv0YKRcefW
And it came back just with "invalid key" in the window.
Is that exact key - i.e. W3YYrz8KeM7PcuXv0YKRcefW
listed on
https://www.zotero.org/settings/keys
?
(btw. your user ID isn't secret - it's part of the URL associated with your forum account, i.e. 771639 )
(But also, don't post keys publicly unless you create one explicitly for testing and limit it to a test group. An API key should be treated like a password.)
Okay, I must have deleted that key above. I just created a new key for a collection and inserted "format=bib" and it worked. I think I may have deleted the "&" before the "key..." part.
(oh and thanks re: user ID and key privacy - I think my brain's getting a bit fried, haha)
First try it in your browser/RSS reader. You should now get the contents of the collection as items.
Once that works, try it in IFTTT
When I went to create and save a new key, it came back with "No token was provided to match against." I still tried to copy and paste the feed from my reader and change as you suggested to see if it would come up in my browser, but for some reason it's not having it.
Next, IFTTT. Pasted that same feed, added a new item to the collection. It wasn't triggered, so I force-ran it, and "recipe check failed" came up again.