I know it's been asked for before, but seriously: Coffer API. We need it.

This is used for general discussion that is not necessarily server-related.
Locked
StrikerTheHedgefox
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jul 29, 2014 7:15 pm

I know it's been asked for before, but seriously: Coffer API. We need it.

Post by StrikerTheHedgefox »

For years, it's been said that an API to retrieve the amount of money in your coffer was in the cards, and it's been discussed repeatedly from posts as far back as 2010... But nothing ever comes of it.

I run a site, an IRC server, and several game servers from my VDS, and I'm entirely dependent on donations to keep it running, since I live in a small town where there's one job to one thousand people, so employment is scarce, and money even more so.

I used to use a separate PayPal account, and asked people to donate there so I can use the PayPal API to display the donation progress on my site. However, recently PayPal changed their terms of service, and blocked off all PayPal API access from those who aren't running business or enterprise accounts.

So, now... I'm stuck. I don't run my own business currently, and PayPal refuses to help. I had to gut the PayPal API stuff from my site, since it would refuse to load (thanks to them revoking all non-business API keys)

I'm hoping someone in the NFOServers staff can take a bit, just to offer a simple means of retrieving our coffer amount.

It doesn't have to be complicated, it can just be an URL that takes an API Key, a UserID, and returns the value as JSON.

Something like this:

Code: Select all

$api_url = http://api.nfoservers.com/GetCoffer/?key=<api key>&userid=<some unique user id number (or email addr)>
$json = json_decode(file_get_contents($api_url), true);

$coffer_amount = $json["response"]["coffer"][0]["amount"];
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by Edge100x »

This hasn't been forgotten. As you said, it's been on the implementation list for a long, time.

Unfortunately, it is a bit complicated, as much as we don't want it to be, because of the security implications (creating a secure API requires the ability to generate and quickly revoke customer-specific keys, and to restrict how they can be used, at minimum). And there are some other security changes that I really need to make first, because building tools on the old security module would just create pain.
It'sRandinator
This is my homepage
This is my homepage
Posts: 97
Joined: Wed Dec 02, 2015 10:56 pm

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by It'sRandinator »

Are you looking into REST?
StrikerTheHedgefox
New to forums
New to forums
Posts: 3
Joined: Tue Jul 29, 2014 7:15 pm

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by StrikerTheHedgefox »

Well, whenever something like this begins development, I'd gladly give it a test.
stickz

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by stickz »

Not giving everyone the email to the owner's NFO account would be a great security change.
StrikerTheHedgefox
New to forums
New to forums
Posts: 3
Joined: Tue Jul 29, 2014 7:15 pm

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by StrikerTheHedgefox »

And another two years pass, with nothing. After waiting multiple years before.

If it weren't such a pain to migrate everything, I would have switched to another provider at this point.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: I know it's been asked for before, but seriously: Coffer API. We need it.

Post by Edge100x »

We don't need more bumps for this thread. This is still on the "to do" list, though as I explained in another post, there are arguments against doing it that revolve around cost, in addition to the security concerns and the simple mountain of other more important work that should be done first.
Locked