dshanske / syndication-links

Add and Display Syndication Links in WordPress
https://wordpress.org/plugins/syndication-links/
GNU General Public License v2.0
30 stars 13 forks source link

Syndication to Medium #33

Closed chrisaldrich closed 8 years ago

chrisaldrich commented 8 years ago

Now that Medium's API now supports posting and in addition to their "import post" functionality (POSSE), their bulk POSSE method, as well as their WordPress Plugin, it would be great if Syndication Links could programatically grab the URL from the plugin for inclusion. (I don't think any of the other methods provide data, but I could be wrong.)

For reference the WordPress Medium Plugin is storing the data in postmeta in meta_key named "medium_post"

Here's an example from something that I posted recently from that field: O:11:"Medium_Post":11:{s:16:"author_image_url";s:69:"https://cdn-images-1.medium.com/fit/c/200/200/0*ici7OvT6gSngj2t9.jpeg (14KB) ";s:10:"author_url";s:32:"https://medium.com/@chrisaldrich";s:11:"byline_name";N;s:12:"byline_email";N;s:10:"cross_link";s:2:"no";s:2:"id";s:12:"4335e2d72369";s:21:"follower_notification";s:3:"yes";s:7:"license";s:19:"all-rights-reserved";s:14:"publication_id";s:12:"12b80d28f892";s:6:"status";s:6:"public";s:3:"url";s:73:"https://medium.com/@chrisaldrich/wordcamp-orange-county-2016-4335e2d72369";}

It's obviously the final URL in the array that you'd want to scrape.

chrisaldrich commented 8 years ago

Thanks David! It was great to see you at IWC-LA. Thanks for flying out to see us all.

I'm confirming that I've updated and done a test syndication to Medium. This works perfectly.

dshanske commented 8 years ago

Glad to hear it.