Tag Info

Hot answers tagged

3

Mkay, I've only used the part of the code that relates to StackAuth: You forgot to update the version number for SitesMethod and UsersByIdAssociatedMethod SitesMethod and UsersByIdAssociatedMethod both take $key as a parameter, but seeing as we've already inited the stackPHP object with the key, seems a bit redundant. I changed my SitesMethod function to ...


3

As the author of Stack.PHP, I will try to answer your questions. "How do I limit the number of results provided by STACK.PHP..." The API will only return the first 30 items from the result set by default. This number can be set to anywhere from 1 to 100. To set this value in Stack.PHP, call the Pagesize() method on a PagedResponse object. For example: ...


2

StackCenter gives me my overall rep, as well as rep and comments per site. But it doesn't give me a dashboard of all my recent question votes, answer votes, and comments. I'd like to see my "recent" view more or less with the existing layout -- because it works well, and the "summary" and other detail tabs are useful -- but one view that contains all the ...


2

Not sure if this is the right place for it, but I'm having some issues when I try and deploy this wrapper on a server as opposed to my local environment. First of all, I don't have SQLite3 on my server and do not have the ability to install it so I've set the caching to 0. Second, I have got it working perfectly on my local dev server that has internet ...


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


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

I am the author of stack.PHP and I'd be glad to answer your question. The problem is that those sites are actually sub-domains of 'stackexchange.com', so what you need to do is change: $service = new Post_Exchange('gamedev', null, 0); to: $service = new Post_Exchange('gamedev.stackexchange', null, 0); Hopefully you get the expected results. If not ...



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