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.
22
questions
1
vote
1
answer
307
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 ...
1
vote
0
answers
85
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 ...
9
votes
1
answer
823
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 ...
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 ...
2
votes
0
answers
474
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/...
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
106
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"} . '/...
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?
1
vote
0
answers
241
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="...
2
votes
1
answer
521
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
151
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 ...
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
0
answers
106
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.