November 24, 2017, 06:10:20 AM

Author Topic: Web, API, Scripting Help  (Read 1174 times)

0 Members and 1 Guest are viewing this topic.

Offline Scootter

  • *
  • Inigo Montoya
    • View Profile
  • Primary Game: WoW
  • Secondary Game: Star Citizen
Web, API, Scripting Help
« on: November 13, 2017, 05:29:19 PM »
I know a little about a lot and mostly enough to be dangerous.  I did send in a ticket and they let me know they are talking to their API team to get me the best response possible but I thought I would ask if anyone has any experience with this type of thing. 

I am involved with a fundraiser that uses Classy.org for all their fundraising.  I honestly had never heard of the site but they claim to be the #1 online and mobile fundraising platform.

What I need in the end is for when someone makes a donation through Classy, Twitch gets an alert.  My initial thought is it would go from Classy to Streamlabs(or any Twitch alert software/site) then to Twitch.

What I don't know is if that is possible with what they have in their API and how I'd script it.  The API documentation https://developers.classy.org/api-docs/v2/index.html https://developers.classy.org/overview/making-requests

Thank you for any help!




Offline Kendaer

  • *
  • Geek. Gamer. Good guy.
    • View Profile
  • Primary Game: Other
  • Secondary Game: Other
Re: Web, API, Scripting Help
« Reply #1 on: November 13, 2017, 11:44:19 PM »
Hey scootter

I don't think their API as they have listed it will work for you *easily*.   Their API is a 'pull' API.    For what you are wanting you would really want a 'push' API, where you could configure them to call you on some notification url (or similar) when a donation occurred.   This is assuming you need something 'approximating' real-time notification.

If you could have notifications delayed by up to a certain interval you could do this by having a process (you'd need to have a server where you could leave a program running for a long period) which woke up every so often, called classy to find the current list of donations (it looks like you'd need to use the activity endpoint and the look for donations, which could be a LOT of data to sift through!).  Then for each new donation your process could call the twitch API to post the message.

Basically I think you could do it, but it wouldn't be pretty.


Offline Scootter

  • *
  • Inigo Montoya
    • View Profile
  • Primary Game: WoW
  • Secondary Game: Star Citizen
Re: Web, API, Scripting Help
« Reply #2 on: November 14, 2017, 01:51:44 PM »
Thanks Kendaer!  I was thinking it might be something like that and I got a reply back from their tech support confirming just that.  The good news is that it is possible at least and I am now just waiting for an API access token to do some testing.