Jump to content

Selling API access


Ihsaan

Recommended Posts

I've got data in a mySql database which is updated daily. I would like to allow webmasters to place this data in a form of a widget on their websites provided they pay for access. If not payment comes through we should be able to block access.

 

Any suggestions how this project would be designed?

Link to comment
https://forums.phpfreaks.com/topic/291295-selling-api-access/
Share on other sites

When someone wants to use the service, generate a random access token for them to use when requesting the data. On each request to your API require them to include the token and check if it is valid before returning any data. If later they do not pay then you can simply invalidate the token.

Link to comment
https://forums.phpfreaks.com/topic/291295-selling-api-access/#findComment-1492155
Share on other sites

  • 2 weeks later...

I've got data in a mySql database which is updated daily. I would like to allow webmasters to place this data in a form of a widget on their websites provided they pay for access. If not payment comes through we should be able to block access.

 

Any suggestions how this project would be designed?

Link to comment
https://forums.phpfreaks.com/topic/291295-selling-api-access/#findComment-1492835
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.