import { auth, basename } from './utils'
import { post } from '../_utils/ajax'

export async function report (instanceName, accessToken, accountId, statusIds, comment, forward) {
  let url = `${basename(instanceName)}/api/v1/reports`
  return post(url, {
    account_id: accountId,
    status_ids: statusIds,
    comment,
    forward
  }, auth(accessToken))
}
