{"size": 462, "ext": "js", "max_stars_repo_path": "api/admin.js", "max_stars_repo_name": "crowdbotics-apps/royal-cloud-33498", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/admin.js", "max_issues_repo_name": "crowdbotics-apps/royal-cloud-33498", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/admin.js", "max_forks_repo_name": "crowdbotics-apps/royal-cloud-33498", "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": 25.6666666667, "max_line_length": 68, "alphanum_fraction": 0.6753246753}
import { API } from './'

export const getUsers = (payload, token) => {
  return API.get(`api/v1/users/${payload}`, token)
}

export const getNotifications = token => {
  return API.get(`api/v1/notifications/`, token)
}

export const createNotifications = (payload, token) => {
  return API.post(`api/v1/notifications/broadcast/`, payload, token)
}

export const updateUser = (id, payload, token) => {
  return API.patch(`api/v1/users/${id}/`, payload, token)
}
