Backpack API to the rescue

Wednesday, February 08

I was just mucking about in Backpack, and noticed that I had this one rogue and title-less list that I couldn’t remove. Normally, the trashcan to delete a list peeks out when you hover over the title, but when there’s no title, there’s no trashcan.

I dug through html source to find ‘destroy list’ call, thinking I could just paste that URL into my browser and execute it manually. But no dice (I think the destroy action must enforce xhr (AJAX) requests). So I had to find another way; I didn’t want to have to email 37signals and ask them to delete a stupid list for me. Then it hit me: the Backpack API!

After doing a small celebratory dance, and armed with my API key, the URL from the html source, and the oh-so-simple instructions, I fired up curl and got rid of my list with a one liner.

Yet another fine example of yak shaving for you.

Comments

Leave a response

Comment