Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
316 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 ...
ajthinking's user avatar
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/...
Panda's user avatar
  • 119
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 ...
Skyyy's user avatar
  • 111
9 votes
1 answer
853 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 ...
Lizza's user avatar
  • 193
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 ...
EntityPaul's user avatar
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/...
2359967's user avatar
  • 103
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"} . '/...
user avatar
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?
Mohan Raj's user avatar
  • 111
2 votes
1 answer
525 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=...
The Alpha's user avatar
  • 123
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 ...
Kaushil Rambhia's user avatar
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 ...
Peter Ajtai's user avatar