2012-06-10, 11:58 PM
If I (or a group of us) were to create an API for MyBB, would you all prefer for the style?
1) Basic PHP class file to include in your scripts that has simple functions to call directly
2) A real API that you call via cURL
The thing is #1 is that it is faster and easier and would work great to integrate different software on the same server (like WP and MyBB) via plugins
#2 has an advantage of working cross-site/domain and with an API Key and user tokens, you can be secure in the connection. Drawback is that it is another http call to your sites.
1) Basic PHP class file to include in your scripts that has simple functions to call directly
2) A real API that you call via cURL
The thing is #1 is that it is faster and easier and would work great to integrate different software on the same server (like WP and MyBB) via plugins
#2 has an advantage of working cross-site/domain and with an API Key and user tokens, you can be secure in the connection. Drawback is that it is another http call to your sites.