Questions tagged [php]

Questions about using PHP code to interact with Stack Exchange and/or the Stack Exchange API. ... For general PHP questions, post on Stack Overflow instead.

Filter by
Sorted by
Tagged with
1 vote
0 answers
229 views

/oauth/access_token not redirecting back to my redirect_uri

I am trying to implement Stack Exchange using oAuth 2.0. I am able to get CODE but, when I try to get access_token through this code: <?php if(isset($_GET['code'])) { ?> <form method="...
7 votes
0 answers
136 views

StackAd Wordpress Plugin - Display Community Ads on Your WordPress Blog with Minimal Effort

Screenshot (source: wordpress.org) About Now you can easily display community based advertisements (like these) on your WordPress blog with almost no effort. The plugin ships with a widget you ...
1 vote
1 answer
294 views

access_token not present in /oauth/access_token response

When using the explicit OAuth authentication for apps, I have problems receiving the access_token. A user goes to /approve and is then forwarded to approve the app. When redirected back to my site I ...
20 votes
0 answers
2k views

OBSOLETE - StackImage - Generating Images of Questions and Users [Now with Global Flair!]

RIP June 23, 2010 - July 4, 2013 All of the features that StackImage provides are either available with the built-in flair on each Stack Exchange site or provided by StackImage's successor: ...
1 vote
1 answer
350 views

Stack Exchange v2.2 PHP API Client [closed]

I am developing a PHP library for interacting with the Stack Exchange API. Most of the methods are unimplemented so far. I am writing this post because I need to test some auth methods. My app ...
4 votes
0 answers
102 views

How to quickly retag a question from the API?

I'm playing with the write API, and I'd like to simply retag a question. This is the code I have so far: $editURL = 'https://api.stackexchange.com/2.2/questions/' . $question->{"question_id"} . '/...
9 votes
1 answer
806 views

Getting "application not configured for implicit grants" error trying to setup website

I had a developer setup StackExchange auth for a site last year and that still works fine. I have cloned that site and am in the process of changing out all of the relevant names and keys to the new ...
1 vote
0 answers
83 views

Get all questions of a particular tag in API 2.2 in PHP

I'm trying to get all the questions for documentation on Meta Stack Overflow in PHP. The code I'm using is as follows: <?php $feed = file_get_contents('https://api.stackexchange.com/2.2/...
1 vote
1 answer
2k views

Unable to decode HTML entities in the API response?

I am trying to decode HTML entities from the JSON data returned by the Stack Exchange API but it's not working. I have used both html_entity_decode and htmlspecialchars_decode but it doesn't effect ...
32 votes
6 answers
7k views

Stack.PHP - Powerful and Extensive Library for Accessing the Stack Exchange API - Including Full Support for v2.0.

Don't know where to start? Begin by checking out the Stack.PHP website. Then head over here for a quick tutorial on setting up and using Stack.PHP. About Why you should use Stack.PHP: Stack....
2 votes
0 answers
472 views

OAuth2 Authentication Redirection error in PHP

I'm trying to authenticate into Stack Exchange's API with the following URL: https://stackexchange.com/oauth/dialog?client_id=3535&scope=write_access&redirect_uri=https://stackexchange.com/...
2 votes
0 answers
313 views

Array boolean values are returning empty

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
0 votes
1 answer
261 views

Post to Stackoverflow

Is it possible to post a question to Stack Overflow using PHP in the same way that it's possible to post content to Facebook?
3 votes
3 answers
3k views

Possible Gzip or data format problems when trying to read JSON.

This is a very basic question. I just want to display a test batch of JSON with PHP, but I think I don't have the correct formatting, since the data received looks garbled when outputed, and it causes ...
7 votes
0 answers
4k views

StackMail - Making the StackExchange Sites Accessible Via Email

Planned Obsolescence Due to almost negligible usage and ongoing maintenance issues, I would like to announce that the StackMail service will be shut down in a few days. Screenshot http://files....
2 votes
1 answer
514 views

Get accepted answers from Stack Overflow using Stack Overflow API 2.1

I want to fetch only my accepted answers from Stack Overflow using the API 2.1 and currently I've following code $data = file_get_contents("http://api.stackexchange.com/2.1/users/741747/answers?page=...
3 votes
0 answers
150 views

Stack Cartographer - A PHP tool for generating a JSON map of the Stack Exchange API.

About After the JSON documentation for the Stack Exchange API was dropped for v2.0, I began to wonder if it would be possible to throw together a PHP script that did a bit of screen-scraping to ...
0 votes
1 answer
1k views

Handling working of PHP API key on webpage

I'm building a phpapi and in this api will be giving my clients API key generated for each client. So basically my client will be sending client id, his personal data(to be stored in DB) & an ...
16 votes
2 answers
2k views

PHPstack - A PHP wrapper to the SE API

PHPstack PHPstack is meant to be an easy to use PHP wrapper for the Stack Exchange API. <?php require_once('lib/requestcore.class.php'); require_once('phpstack.class.php'); $so = new ...
1 vote
0 answers
104 views

Has anyone made a wordpress plugin for stack api?

Just wondering if as it would be nice to put a widget on a wordpress post that allows people to add new questions and answer them right there in the blog.
14 votes
3 answers
637 views

StackCenter 2 - Now in Public Beta!

Visit now: http://stackcenter.quickmediasolutions.com/beta/ Feedback is appreciated! About StackCenter 2 has been brewing for quite some time now. Since the global inbox was introduced, the original ...
4 votes
0 answers
363 views

Simple Answer Guessing App - Trivial Pursuit: Edition SO

About Stackoverflow Trivial Pursuit This app came about after I read this meta thread feature request by Evan Carroll. The idea is that you can look at questions on Stackoverflow without seeing the ...