Ihsaan Posted September 26, 2014 Share Posted September 26, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/291295-selling-api-access/ Share on other sites More sharing options...
kicken Posted September 26, 2014 Share Posted September 26, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/291295-selling-api-access/#findComment-1492155 Share on other sites More sharing options...
ShrutiK Posted October 6, 2014 Share Posted October 6, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/291295-selling-api-access/#findComment-1492835 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.