Skip to content

Commit 3fcc5a9

Browse files
committed
added medium create post rest api integration
1 parent 8ab3c9e commit 3fcc5a9

File tree

4 files changed

+814
-0
lines changed

4 files changed

+814
-0
lines changed

medium/api.http

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# curl --location --request POST 'https://api.medium.com/v1/users/12974e025f39ae31b1e4c4a419f4f8210f1b399d20e39f24d5eeb3f1715d041e4/posts'
2+
#--header 'accept: application/json'
3+
#--header 'Authorization: Bearer 2418f8eabee116684110f01ec98631f35f7528a88c33312e9a339fb1e9de46ec9'
4+
#--header 'Content-Type: application/json'
5+
#--header 'Cookie: sid=1:aboHYaPMDZy7swhgN7pefrUZqNu06mEblRggnskEFSniUuc2455pGgCPQtzNqsS7; uid=lo_0368e234f2c3'
6+
#--data-raw '{
7+
# "title": "Liverpool FC 3",
8+
# "contentFormat": "html",
9+
# "content": "<h1>Liverpool FC 3</h1><p>You’ll never walk alone.</p>",
10+
# "canonicalUrl": "http://jamietalbot.com/posts/liverpool-fc",
11+
# "tags": [
12+
# "football",
13+
# "sport",
14+
# "Liverpool"
15+
# ],
16+
# "publishStatus": "public"
17+
#}'
18+
POST https://api.medium.com/v1/users/12974e025f39ae31b1e4c4a419f4f8210f1b399d20e39f24d5eeb3f1715d041e4/posts
19+
accept: application/json
20+
Authorization: Bearer 2418f8eabee116684110f01ec98631f35f7528a88c33312e9a339fb1e9de46ec9
21+
Cookie: sid=1:aboHYaPMDZy7swhgN7pefrUZqNu06mEblRggnskEFSniUuc2455pGgCPQtzNqsS7; uid=lo_0368e234f2c3
22+
Content-Type: application/json
23+
24+
{
25+
"title": "Liverpool FC 4",
26+
"contentFormat": "html",
27+
"content": "<h1>Liverpool FC 4</h1><p>You’ll never walk alone.</p>",
28+
"canonicalUrl": "http://jamietalbot.com/posts/liverpool-fc",
29+
"tags": [
30+
"football",
31+
"sport",
32+
"Liverpool"
33+
],
34+
"publishStatus": "public"
35+
}
36+
37+
###
38+

0 commit comments

Comments
 (0)