1. Connect
JOIN EDITZ

Function corrections_list

Function Name: corrections_list
Description: Get the list of corrections by site or all sites by owner
Parameters:

  • status: Optional. The status to filter the list of errors. The accepted values are:
    • pending: (Default). This will filter only pending errors.
    • accepted: This will filter only accepted errors.
    • declined: This will filter only declined errors.
    • all: This will apply no filter and return all corrections.
  • sid: Optional. The site id for which to show the errors. If not specified will return errors for all sites for that user.
  • page: Optional. (0 by default). The number of page that you want to get the results. Starting from 0 (first page)
  • items_page: Optional. (10 by default). The number of items should be showed on each page.
  • Return:

    • status: The status of the result, 0 for OK, 1 for error (look at the error code and messages)
    • count: The count of corrections returned.
    • total_pages: The total number of pages with result items.
    • actual_page: The actual page being shown. Starting from 0.
    • correction_n: There will be a list of this return values, one for each correction and they will be named correction_1 to correction_n where n is the number of the correction. Each of this sites will have the following values:
      • id: Correction ID.
      • user: User ID that posted the correction.
      • sid: The site id of this correction.
      • created: The timestamp when the correction was reported.
      • value: The correction text
      • original: The original value if apply.
      • points: The number of points for this correction.
      • type: The type of correction.
      • url: The URL of the page where the correction is reported in.
      • status: The status for this correction:
        • 0: Pending
        • 2: Accepted
        • 3: Declined
      • extra: The extra value passed when the correction was made.