Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 658 Bytes

INVITEUSER.MD

File metadata and controls

41 lines (36 loc) · 658 Bytes

Invite User(s) To Team 🔒

# POST
https://www.codegrepper.com/api/add_team_members.php
const token = tokenData.token;
const userId = tokenData.userId;

const Data = [
  {
    team_id: 1,
    user_id: 98467,
  },
];

return fetch(`https://www.codegrepper.com/api/add_team_members.php`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-auth-token": token,
    "x-auth-id": userId,
  },
  body: JSON.stringify(Data),
})
  .then((response) => {
    return response.text();
  })
  .then((data) => {
    console.log(data);
  })
  .catch((err) => {
    console.log(err);
  });
# Empty Response