I want to display data from the Givewp plugin such as donor count using the CS charts plugin, how can I link that data to the chart?
This is a little tricky since they use custom tables in this plugin. If you have the time you could write something that connects this to Cornerstone Dynamic Content.
I would probably integrate the External API with the GiveWP API. With caching you shouldn’t run into issues. It depends what data you are trying to grab. This would probably be the preferred route too since I think they do calculations for you behind the scenes.
Sample
http://yoursite.com/give-api/v1/stats/?key=c281cf0a95be875d9eeb284fb004c938&token=5f9432f3ffa5945755ebc66179810d70&type=donations
{
"donations": {
"today": 0,
"current_month": "13",
"last_month": 0,
"totals": 13
},
"request_speed": 0.0044069290161133
}
The tables if you want to go this route.
With One Total Care we would be happy to do all this for you as well. Let us know if you have any questions and happy holidays!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.