{"size": 688, "ext": "js", "max_stars_repo_path": "app/services/user/http-user.js", "max_stars_repo_name": "Frerit/TiendaMaquinas", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/services/user/http-user.js", "max_issues_repo_name": "Frerit/TiendaMaquinas", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/services/user/http-user.js", "max_forks_repo_name": "Frerit/TiendaMaquinas", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.2352941176, "max_line_length": 55, "alphanum_fraction": 0.5625}

import { API_BASE, HTTP_USER } from '../config';
import httpBase from '../../services/http-base';

class HttpUser {
  getUser() {
    try {
      const url = `${API_BASE}${HTTP_USER.getUsers}`
      const data = httpBase.baseGet(url, {})
      return data;
    } catch (error) {
      console.log(error);
    }
  }

  getUserByToken() {
    try {
      const url = `${API_BASE}${HTTP_USER.getUser}`;
      let TOKEN = 'dftg3Wd6sW2zxl6dewWfS1';
      const config = {
        headers: {
          Autorization: `Bearer: ${TOKEN}`
        }
      }
      const data = await httpBase.baseGet(url, config);
      return data;
    } catch (error) {

    }
  }
}

export default new HttpUser;
