Skip to content

Commit

Permalink
fix: #1109 support telegra.ph login
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 2, 2024
1 parent 004e29b commit ab25c51
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions testdata/telegra-ph/http-client/content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"tag":"p","attrs":{"dir":"auto"},"children":["测试正文"]}]
75 changes: 75 additions & 0 deletions testdata/telegra-ph/http-client/telegra.ph.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# telegra.ph

### getCfg
# @no-cookie-jar
POST https://edit.telegra.ph/check
origin: https://telegra.ph
referer: https://telegra.ph/
Content-Type: text/plain

page_id=0

### newArticle
# @no-cookie-jar
POST https://edit.telegra.ph/save
origin: https://telegra.ph
referer: https://telegra.ph/
Cookie: tph_uuid=OA4kiCWNRETS7Laf9JLG5m5yDG7IQh2CP4W8GQTvvM
Content-Type: multipart/form-data; boundary=TelegraPhBoundary21

--TelegraPhBoundary21
Content-Disposition: form-data; name="Data"; filename="content.html"

< /Users/terwer/Documents/mydocs/siyuan-plugins/siyuan-plugin-publisher/testdata/telegra-ph/content.html
--TelegraPhBoundary21
Content-Disposition: form-data; name="title"

测试标题
--TelegraPhBoundary21
Content-Disposition: form-data; name="author"


--TelegraPhBoundary21
Content-Disposition: form-data; name="save_hash"

6c462dc644189dbf6784b3af552d68729439
--TelegraPhBoundary21
Content-Disposition: form-data; name="page_id"

0
--TelegraPhBoundary21

### updateArticle
# @no-cookie-jar
POST https://edit.telegra.ph/save
origin: https://telegra.ph
referer: https://telegra.ph/
Cookie: tph_uuid=OA4kiCWNRETS7Laf9JLG5m5yDG7IQh2CP4W8GQTvvM
Content-Type: multipart/form-data; boundary=TelegraPhBoundary21

--TelegraPhBoundary21
Content-Disposition: form-data; name="Data"; filename="content.html"

< /Users/terwer/Documents/mydocs/siyuan-plugins/siyuan-plugin-publisher/testdata/telegra-ph/content.html
--TelegraPhBoundary21
Content-Disposition: form-data; name="title"

测试标题
--TelegraPhBoundary21
Content-Disposition: form-data; name="author"


--TelegraPhBoundary21
Content-Disposition: form-data; name="save_hash"

6c462dc644189dbf6784b3af552d68729439
--TelegraPhBoundary21
Content-Disposition: form-data; name="page_id"

95b855b7da05c53198fd3
--TelegraPhBoundary21

## Thanks

[telegraph.md](https://github.com/telegraf/telegraph.md)
[telegraph-uploader](https://github.com/loskir/telegraph-uploader)

0 comments on commit ab25c51

Please sign in to comment.