patreon-php icon indicating copy to clipboard operation
patreon-php copied to clipboard

How to upload image to patreon account using API

Open ghost opened this issue 3 years ago • 1 comments

Hi. I have checked your API in detail. I think it's really good code to integrate patreon API. I want to upload image to my patreon account using API. Would you like to let me know how I can do this using your code. Thanks.

ghost avatar Aug 04 '20 14:08 ghost

Currently write operations are not possible with the api. Therefore creating posts at Patreon or uploading images are not possible.

However you can do the opposite - import/sync Patreon posts, images etc from Patreon to your site or app. The WP plugin has working code which does that in patreon_content_sync.php class.

https://github.com/Patreon/patreon-wordpress/blob/master/classes/patreon_content_sync.php

With some other functions in other classes. In general, you can use the code logic which WP plugin has for implementing such features in your app or site. WP plugin already does many things ranging from gating content to Patreon login to post sync/import.

codebard avatar Aug 04 '20 20:08 codebard