I discovered that the API documentation note Requests - API Reference - Blues Developers has a “curl” example for a number of the requests.
Pro-tip: running curl with the --libcurl filename.c option generates a c file with the libcurl translation of the curl command.
So I am making progress.
I have a couple observations however:
The Notehub events web page does not seem consistent with what I fetch via http. For example, I deleted all the notes, added some notes with HTTP, and pulled those notes with HTTP. The web page shows the added notes but with I pulled the notes I got some stale ones (i.e. those which had been deleted). At the moment, the web page shows 4 notes but I pulled 7 (now 5 because I deleted a couple).
The API suggests (?) that you can ask note.changes with delete to true (something like
and the notes which are received are deleted from Notehub. I get the notes, but they are not deleted. Repeated note.changes deliver the same notes with delete:true. I observe in the API example there is a curl Peek but no curl Pop example which may be telling.
I can, however, explicitly delete a note with note.delete, but this requires a transaction for each note.
I realize the API may be a work in progress but I thought I’d ask.