Skip to content

In get_answers() use api/2/answer?question=<question_id> instead of api/2/answer/<answer_id> #10

@rtanglao

Description

@rtanglao
  • This way you get all the answers not just the answers at the time of the question API poll. i.e. The array of answer ids in the API response from the question API can be incomplete

Checklist

  • use question id api
  • re-use the answer hash from the API with updated created and updated time, don't create a new one
  • log a WARNING if anything besides creator is a hash
to see full API response from https://support.mozilla.org/api/2/answer/?question=1543155
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 1774834,
      "question": 1543155,
      "content": "<p>This forum is supported by users like you, individuals who give of their free time to assist others. If you need a direct response to your questions, you should consider an email client that charges a hefty fee instead of using Thunderbird, which is FREE. And, the scenario you posted has no relevance to Thunderbird, but to your email provider. All thunderbird does is relay the messages from email provider to you. Thunderbird does not check passwords, does not issue recovery codes.\n<\/p>",
      "created": "2025-10-25T11:30:23.125599Z",
      "creator": {
        "username": "davidsk",
        "display_name": "david",
        "avatar": "https://firefoxusercontent.com/5eed5ecf74d9e1ec85435ea262bc016e"
      },
      "updated": "2025-10-25T11:30:23.125609Z",
      "updated_by": null,
      "is_spam": false,
      "num_helpful_votes": 0,
      "num_unhelpful_votes": 0
    }
  ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions