import axios from 'axios';
import { BASE_URL_API } from '../config.mjs';

const token = '77f0qj6wBe_aT4tk0IsY1K6LhTe2wx_b0bo7BEKOMa5UTYf61dY_arnEKJUFUEM1BpdWY5043KnfSyAm8RcwIoojL_a_aekwKUwk'

export default (url) => axios({
  baseURL: BASE_URL_API,
  url,
  method: 'POST',
  timeout: 2000,
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  data: {
    token,
    api: 'json',
    limit: 1
  },
})
