2

Anything transferred to the client and used by the client is inherently insecure. That being said, the API key can safely be divulged to the client. The only thing you need to protect is the client secret - which is only used in the explicit authentication flow. More details here: https://api.stackexchange.com/docs/authentication


2

bug support @Nathan Osman, I have been trying to get authentication working with your library (which is very useful BTW). However, whenever I use the explicit flow I end up with an error on the stack exchange.com/oauth/submit page saying: Cannot return to provided redirect_uri The uri I am attempting to provide is generated using BeginExplicitFlow in ...


2

I've already used the Stack.PHP library in a WordPress plugin and am deploying a second one. They had a class conflict and using class_exists before require_once/stackphp* didn't work. I had to do this at the beginning of the file output_helper.php: if( !class_exists( 'API' ) ): require_once 'api.php'; require_once 'auth.php'; endif; require_once '...


1

First of all, you should be using the latest version of Stack.PHP, which is version 0.5. You can download a tarball here: https://launchpad.net/stackphp/0.5/0.5/+download/stackphp-0.5-source.tar.gz The only file you need to include is api.php which is in the src/ directory. You will almost never need to create a Request object yourself since you can ...


1

This is probably a dumb question, but: How do you retrieve the body of a post? For example, I have: $questionList = $api->Questions()->SortByActivity()->Exec(); while($question = $questionList->Fetch(TRUE)){ ... } But... how do I get the question body? It doesn't seem to be in the API reponse that I can see. I remember in the v1 API you ...


Only top voted, non community-wiki answers of a minimum length are eligible