Guide to Posting to napkin.one using curl and their webhook
First, run send code to mail to get a code.
curl -H 'Content-Type: application/json' -d\
'{"email" : "your email"}'\
https://us-central1-deepthoughtworks.cloudfunctions.net/sendCodeToMail
Get your code from your email. It should look like "12345", then fill it into the following request:
Then, use this code to get your uid
curl -H 'Content-Type: application/json' -d\
'{"email": "your email", "code": "your code"}'\
https://us-central1-deepthoughtworks.cloudfunctions.net/confirmCredentialsAndGetUid
You will receive a uid that looks like "hfE4r8T...7syA3". Remember it and the code you got earlier.
Finally, try sending some text. Remember to fill in the uid and code.
curl -H 'Content-Type: application/json'\
-d\
'{
"uid" : "your uid",
"code" : "your code",
"content" : "It is very convenient to post to napkin using curl",
"sourceUrl" : "https://curl.se/",
"integrationType" : "curl"
}'\
https://us-central1-deepthoughtworks.cloudfunctions.net/addTextToAccount