# OpenCollective plugin

**URL:** <https://meta.discourse.org/t/opencollective-plugin/59912>\
**Category:** Feature\
**Created:** [March 25, 2017, 8:56am UTC](https://meta.discourse.org/t/opencollective-plugin/59912 "2017-03-25T08:56:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 26, 2017, 10:02pm UTC](https://meta.discourse.org/t/opencollective-plugin/59912/4 "2017-03-26T22:02:01Z")

</div>

> [@Sudaraka](#):
>
> I think there are two possibilities to retrieve data,
> 
> - Storing sites’ backers and sponsors in a Discourse database and updating the data within some time interval
> 
> - Constantly retrieving data from their API endpoints real time.

You should always cache data like that locally.

We have the class PluginStore, a Key-Value that will help you on that.

Use a Sidekiq job, that will be triggered each N hours, and will sync all the necessary data.

Example:

> <https://github.com/discourse/discourse-slack-official/blob/master/plugin.rb#L333-L337>

EDIT: I took a look at Open Collective API last week, and it has pretty much all we need, except that only usernames (and optional website) identify users, and we would need emails.

---

_[View the full topic](https://meta.discourse.org/t/opencollective-plugin/59912)._
