Created
April 3, 2016 23:32
-
-
Save virtadpt/a6fc2eedbb684b551876f5bb4a5b717e to your computer and use it in GitHub Desktop.
How I integrated Medium with Huginn.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RssAgent: | |
{ | |
"expected_update_period_in_days": "365", | |
"clean": "false", | |
"url": "http://drwho.virtadpt.net/rss/feed.xml" | |
} | |
ChangeDetectorAgent: | |
{ | |
"property": "{{last_updated}}", | |
"expected_update_period_in_days": 31 | |
} | |
PostAgent: | |
{ | |
"post_url": "https://api.medium.com/v1/users/{% credential medium_user_id %}/posts", | |
"expected_receive_period_in_days": "365", | |
"content_type": "json", | |
"method": "post", | |
"payload": { | |
"title": "{{ title }}", | |
"contentFormat": "html", | |
"content": "{{ content }}", | |
"canonicalUrl": "{{ url }}", | |
"tags": [ | |
"crosspost", | |
"personal", | |
"fixme" | |
], | |
"publishStatus": "public" | |
}, | |
"headers": { | |
"Authorization": "Bearer {% credential medium_integration_token %}", | |
"Accept-Charset": "utf-8" | |
}, | |
"emit_events": "true", | |
"no_merge": "true" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment