Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 733 Bytes

WHOTOFOLLOW.md

File metadata and controls

44 lines (40 loc) · 733 Bytes

Who To Follow 🔒

# POST
https://www.codegrepper.com/api/get_who_to_follow.php
const token = String;
const userId = Number;

return fetch(`https://www.codegrepper.com/api/get_who_to_follow.php`, {
  headers: {
    "Content-Type": "application/json",
    "x-auth-token": token,
    "x-auth-id": userId,
  },
})
  .then((response) => {
    return response.json();
  })
  .then((data) => {
    console.log(data);
  })
  .catch((err) => {
    console.log(err);
  });
{
  "users": [
    {
      "fun_name": "Undefined",
      "profile_slug": "Undefined",
      "belt_score": null,
      "is_rank_private": 1,
      "user_id": 98467,
      "profile_image": null,
      "belt_rank": "no"
    }
  ]
}