Jump to content

Bharat

Members
  • Posts

    1
  • Joined

  • Last visited

  1. Also tried Axios With "https://my-server.pulseway.com/v3/organizations"; getting 404 and with "https://api.pulseway.com/v3/organizations"; getting 403 response const axios = require('axios'); const endpoint = "https://my-server.pulseway.com/v3/organizations"; const token_id = "token ID"; const token_secret = "token Secret"; const auth = { username: token_id, password: token_secret, }; axios.get(endpoint, { auth }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error); });
×
×
  • Create New...