{"size": 441, "ext": "js", "max_stars_repo_path": "Controller/getRequest.js", "max_stars_repo_name": "ledmago/MyDriverReactNative", "max_stars_repo_stars_event_min_datetime": "2020-07-23T20:49:24.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-23T20:49:24.000Z", "max_issues_repo_path": "Controller/getRequest.js", "max_issues_repo_name": "ledmago/MyDriverReactNative", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Controller/getRequest.js", "max_forks_repo_name": "ledmago/MyDriverReactNative", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.5, "max_line_length": 191, "alphanum_fraction": 0.5986394558}
import config from '../config.json';
export default sendPostRequest = async (params, api) => {

    try {
        let response = await fetch(config.apiURL + api + '/', { method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify(params), });
        let json = await response.json();
        return json;
    } catch (error) {
        console.log(error)
        return false;
    }

}
